DataSet without precise RecordCount
#1
Posted 30 April 2008 - 06:03 PM
I have a problem with the NextDBGrid:
I have a DataSet connected with a table in a database.
Depending on the selected key in the table the recordcount can't be determined.
If this is the case, the NextDBGrid gets the higher recordcount (the overall records in the table) and sets the scrollbar size accordingly.
Now if you scroll over the edge, the NextDBGrid scrolls further down and shows the last row again and again.
The NextDBGrid should stop scrolling at this point and set the scrollbar size accordingly.
The grid knows where to stop, if it reacts on the return value of TDataSet.GetRecord (grEOF).
This works in the standard component DBGrid in the VCL.
Also the scroll speed is pretty low: when you scroll down, you shortly see the selection on the current AND the next row.
Regards,
Taifun
#2
Posted 30 April 2008 - 06:17 PM
I will answer on this question shortly.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 02 May 2008 - 02:30 PM
This unfortunatelly can't be changed easily due to complete organization of NextDBGrid
I will see to add one more property to control this in future, but not know when and if is possible.
I am sorry again.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#4
Posted 05 May 2008 - 11:17 AM
I can only tell you how important this is to us.
Otherwise we can't work with our DataSet and therefore can't use your component ...
A new property to control this would be really really helpful.
Regards,
Taifun
#5
Posted 05 May 2008 - 10:39 PM
I will try to do something about this issue. I hope that it is possible.
Thank you.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#6
Posted 06 May 2008 - 11:59 AM
I already tried to mess a little bit with your source, but unfortunately it didn't work.
My starting point was the TNextDBGrid.GetVertMax function, where I tried to react on the Eof of the DataLink.
But the result wasn't nearly as expected. This is what I did:
var
RecordCount: Integer;
begin
Result := 0;
if IsUpdating then Exit;
if IsDataSetActive then
begin
if FDataLink.Eof and not FScrollCountSet then
begin
FScrollCount:=VertScrollBar.Position;
FScrollCountSet:=true;
end;
if FScrollCountSet then
begin
Result:=FScrollCount;
end else
begin
RecordCount:=FDataLink.DataSet.RecordCount;
if FDataLink.DataSet.State=dsInsert then Inc(RecordCount);
Result:=RecordCount-GetVisibleRecordsCount(True);
end;
end else Result := 0;
end;
It works with getting the last position, but the scrollbar is not really updated.
And afterwards scrolling is totally off ...
Regards,
Taifun
#7
Posted 08 May 2008 - 01:33 AM
Unfortunatelly it will need more time to I take a look on it. If I have a small chance to add this as option, I will add it.
I hope that this help you a little bit
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#8
Posted 26 May 2008 - 12:03 PM
I made a short break with developing our new program, but now I would like to resume my work.
Therefore this issue is again at hand.
Any progress? I really really need that, otherwise I can't use your component and bought it for nothing.
Thanks and regards,
Taifun
#9
Posted 26 May 2008 - 12:07 PM
Unfortunately no significant progress yet. It will need some time to work on this delicate problem. I will continue to work on it, but not sure when it may be done.
Unfortunately, if you are not satisfied with purchase, I may offer refund.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#10
Posted 26 May 2008 - 12:28 PM
if you are really working on it and it may take 2-3 weeks, then everything is ok.
But I've not time forever and if you're not working on it and there is no progress on this issue, then I need to look for another solution.
I really like your components and I hope you'll find a solution which will allow us to work with them.
Regards,
Taifun
#11
Posted 26 May 2008 - 12:30 PM
Please make note that is not 100% sure that is possible to add this ability inside NextDBGrid, but I will do my best.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#12
Posted 27 May 2008 - 03:56 PM
then I will wait a while.
I'm positiv that you will find a solution
I will asked for progress next week.
Regards,
Taifun
#13
Posted 27 May 2008 - 07:56 PM
Thank you for your patience, I will do my best to solve this problem. Please note that I will go on small trip (3 days) next week, so I may delay on answering about this issue, but will do my best. I think that it will be the best to add new flag in DataAwareOptions to jump into unknown rowcount mode.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#14
Posted 28 May 2008 - 09:48 AM
sounds great!
Let me know, if I can help you in any way.
Regards,
Taifun
#15
Posted 09 June 2008 - 11:54 AM
here I am again.
Any progress on this issue? Anything I can help you with?
Regards,
Taifun
#16
Posted 09 June 2008 - 01:06 PM
I am working on it. Today new release is out, but I hope that this feature will be ready for first next release.
Thank you for waiting.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











