DataDrid scroll to the bottom ???

  • Thread starter Thread starter Ofer B.
  • Start date Start date
O

Ofer B.

Hi

I wont to fill a data grid with 100 rows and every time the user scroll to
the bottom (the last row) to fill the data grid with the
next 100 rows.
How can i know that the user scroll down and reach the bottom of the data
gric control?

Thanks
Ofer
 
Several things come to mind:
1) Write custom DataSource (implement IList, IBindingList) and whenever you
detect that the last feched row is about to be queried, increase the
List.Count and fire ListChanged event
2) Use reflection to get a hold of the DataGrid internal VScrollBar and add
an event handler to it. This will allow you to be notified whenever the
datagrid is scrolled. It is up to you to read the scrollbar value (will be
set to a number of the topmost visible row) and take an action
3) Use 3rd party grid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Cannot delete empty cells/rows 4
DataGrid & Horizontal Scroll Bar 1
datagrid code scrolling 1
PowerPoint Embed scroll excel chart and data in powerpoint 0
SCROLL BAR ISSUE 4
Scrollbar example for a control 1
Bottom of Page 4
Scroll Bar question 2

Back
Top