PC Review


Reply
Thread Tools Rate Thread

DataDrid scroll to the bottom ???

 
 
Ofer B.
Guest
Posts: n/a
 
      19th Nov 2003
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


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      19th Nov 2003
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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scroll DataGridView to the bottom =?Utf-8?B?R2lkaQ==?= Microsoft C# .NET 2 20th Nov 2007 11:09 AM
Start <Div> at bottom of scroll =?Utf-8?B?QmVu?= Microsoft C# .NET 3 10th Apr 2006 05:33 PM
How do I get rid of this bottom scroll bar? Larry Microsoft Frontpage 2 30th Jun 2004 05:50 PM
scroll bar along bottom Mark Windows XP Internet Explorer 1 25th Oct 2003 04:23 AM
Re: scroll bar on bottom of worksheet Don Guillett Microsoft Excel Worksheet Functions 0 12th Sep 2003 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 PM.