Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

Paging with the DataGriView control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben - 26 Feb 2007 17:37 GMT
Hi all,

Is it possible to view result sets with the DataGriView control,
instead of it showing all the results at once?
For example, showing the first 10 results, then the next 10 and so on,
just like in web pages.

Thanks,
Ben
Sundar Narasiman - 27 Feb 2007 05:52 GMT
Ben,

This is a good question. You have out-of-box paging support for ASP.NET 2.0
's GridView Control. Unfortunately we don't have that for DataGridView
Control of Windows Application.
                      We need to write custom code to figure out the paging
logic.
The following link has the snippet for this scenario.

http://www.codeproject.com/useritems/DataGridView_manipulation.asp

Please let me know whether this fixes your need.

Signature

Thanks & Regards,
Sundar Narasiman

> Hi all,
>
[quoted text clipped - 5 lines]
> Thanks,
> Ben
RobinS - 27 Feb 2007 07:18 GMT
Check out Virtual Mode for the DataGridView. I think it lets you do that,
or at least only loads n rows at a time.

Robin S.
----------------------
> Hi all,
>
[quoted text clipped - 5 lines]
> Thanks,
> Ben
Ben - 27 Feb 2007 13:03 GMT
I wonder why MS didn't implement it for us WinForms users.
Anyways, thanks for the info guys. I'll let you know if meets my needs.

Thanks,
Ben
Sundar Narasiman - 27 Feb 2007 16:25 GMT
Ben,

If our post was useful, please press "Yes" to the "Was this post helpful to
you" link.

Signature

Thanks & Regards,
Sundar Narasiman

> I wonder why MS didn't implement it for us WinForms users.
> Anyways, thanks for the info guys. I'll let you know if meets my needs.
>
> Thanks,
> Ben
Ben - 27 Feb 2007 17:52 GMT
Thanks guys, your post was very helpful.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.