Jump to content


Photo

DataSet without precise RecordCount


  • Please log in to reply
15 replies to this topic

#1 Taifun

Taifun
  • Members
  • 27 posts

Posted 30 April 2008 - 06:03 PM

Hello Boki,

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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 30 April 2008 - 06:17 PM

Hello Taifun,

I will answer on this question shortly.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 May 2008 - 02:30 PM

Hello Taifun,

This unfortunatelly can't be changed easily due to complete organization of NextDBGrid sad.gif

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
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 05 May 2008 - 11:17 AM

Hello Boki,

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 ... sad.gif

A new property to control this would be really really helpful.
Regards,
Taifun

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 05 May 2008 - 10:39 PM

Hello Taifun,

I will try to do something about this issue. I hope that it is possible.

Thank you.
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 06 May 2008 - 11:59 AM

Hello Boki,

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:
CODE
function TNextDBGrid.GetVertMax: Integer;
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 ... sad.gif

Regards,
Taifun

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 08 May 2008 - 01:33 AM

Hello Taifun,

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 wink.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 26 May 2008 - 12:03 PM

Hello Boki,

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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 26 May 2008 - 12:07 PM

Hello Taifun,

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
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 26 May 2008 - 12:28 PM

Hello Boki,

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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 26 May 2008 - 12:30 PM

Hello Taifun,

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
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 27 May 2008 - 03:56 PM

Hello Boki,

then I will wait a while.
I'm positiv that you will find a solution wink.gif

I will asked for progress next week.
Regards,
Taifun

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 27 May 2008 - 07:56 PM

Hello Taifun,

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
boki@bergsoft.net | LinkedIn Profile
--
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 Taifun

Taifun
  • Members
  • 27 posts

Posted 28 May 2008 - 09:48 AM

Hello Boki,

sounds great!
Let me know, if I can help you in any way.

Regards,
Taifun

#15 Taifun

Taifun
  • Members
  • 27 posts

Posted 09 June 2008 - 11:54 AM

Hello Boki,

here I am again.
Any progress on this issue? Anything I can help you with?

Regards,
Taifun

#16 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 09 June 2008 - 01:06 PM

Hello Taifun,

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
boki@bergsoft.net | LinkedIn Profile
--
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