mrdutchie Posted May 19, 2004 Posted May 19, 2004 I am looking into Paging for a Datagrid/Listview, but I don't have that option DataGrid.AllowPaging Property [Visual Basic] (MSDN Helpfile) Cause it seems like this is a way to make the Datagrid better with huge amount of rows. and how to get Paging in a Listview (if possible) since loading 40.000 takes way to long What do I need to do, to make it work? Quote
pelikan Posted May 29, 2004 Posted May 29, 2004 Sounds like you need to implement custom paging. Check out the DataGrid.AllowCustomPaging property in the SDK Documentation to see how to do this. Quite some time ago I had to solve the same problem with the ListView windows control (by writing a superclassed COM Component using ADO). You hook into appropriate events - say [Page Up] [Page Down] etc. and fill the control manually based on you're calculated page index.In ADO .NET you'd fetch a new page into your dataset or datareader and manually fill the ListView. A complicated but doable operation. Quote IN PARVUM MULTUM
mrdutchie Posted May 29, 2004 Author Posted May 29, 2004 Sounds like you need to implement custom paging. Check out the DataGrid.AllowCustomPaging property in the SDK Documentation to see how to do this. Quite some time ago I had to solve the same problem with the ListView windows control (by writing a superclassed COM Component using ADO). You hook into appropriate events - say [Page Up] [Page Down] etc. and fill the control manually based on you're calculated page index.In ADO .NET you'd fetch a new page into your dataset or datareader and manually fill the ListView. A complicated but doable operation. Hmm... maybe a source to peek at? :) Quote
wessamzeidan Posted May 29, 2004 Posted May 29, 2004 http://www.codeproject.com/aspnet/custompaging.asp Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.