|
I'm working on a Page Loading Dataset wrapper, and I realized that as much as I can load a page at a time from the DB into the DataTable, this means nothing if I don't know when to load the next page. I naturally assumed I would just listen to the Scroll bar events for the DataGridView and/or the position indicator on the bindingsource, when I discovered that the DataGridView only has a simple "OnScroll" event, and in that event one is only provided the NewValue and OldValue of the current scroll bar position. Is there a way to get the Min/Max of the the scroll bar so that I know what the "NewValue" is relative to? (Ie, have we scrolled more than 60% down through the available rows, then load the next page, etc) Thanks Jaeden "Sifo Dyas" al'Raec Ruiner "Never Trust a computer. Your brain is smarter than any micro-chip." |