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.