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
"Ofer B." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
|