Jump to content


Scroling in DBNxGrid while doBufferRecords set to true


  • Please log in to reply
4 replies to this topic

#1 Fik

Fik
  • Members
  • 6 posts

Posted 16 March 2011 - 02:15 PM

Hello, i am using NextDbGrid v 5.3. I have this grid set to doBufferRecords = True. It seem like AutoScroll is not working with this seting. I am selecting row with Grid.SelectedRow := RowNumber and auto scroll dont happen. Even when i am moving in table records, selectedrow in grid change but scroll does not happen. I have tryed to set Autoscroll to false and scroll to row with Grid.ScrollToRow(RowNumber) but it didnt work.

Any help on this subject? What i want to do is select day in calendar and in grid i want to select and scroll to row with same date picked in calendar.

Thx Fik

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 22 March 2011 - 02:37 AM

Hello Fik,

Please sorry for delay. I have miss this topic.

Try to use ScrollToRow() method to scroll to desired row.

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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 Fik

Fik
  • Members
  • 6 posts

Posted 23 March 2011 - 03:36 PM

QUOTE (Boki (Berg) @ Mar 22 2011, 02:37 AM) <{POST_SNAPBACK}>
Hello Fik,

Please sorry for delay. I have miss this topic.

Try to use ScrollToRow() method to scroll to desired row.

Best regards

Aye, i tryed set autoscroll to False and scroll to row by using ScrollToRow() but it did nothing.

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 23 March 2011 - 04:02 PM

Hello Fik,

You may open Demo 1 in Demos\Delphi\Next DBGrid\ADO and click on button ScrollToRow(20) to see how it work.

I hope that this helps.

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#5 Fik

Fik
  • Members
  • 6 posts

Posted 24 March 2011 - 10:33 AM

QUOTE (Boki (Berg) @ Mar 23 2011, 04:02 PM) <{POST_SNAPBACK}>
Hello Fik,

You may open Demo 1 in Demos\Delphi\Next DBGrid\ADO and click on button ScrollToRow(20) to see how it work.

I hope that this helps.

Best regards


I found what i did wrong. Thx Boki




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users