|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid and Paging.I am working on a web page, and I have to use paging on my datagrids. How do
I implement paging on the datagrid so that the paging works with just one click and I do not have to reload my data. The datagrid already has data in it, it just doesnt make sense to me to have to reload it. I am overriding this method private void a_participantGroupDg_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { a_participantGroupDg.CurrentPageIndex = e.NewPageIndex; } but if i do this the paging is not applied till the next postback. Is there a way to do this without reloading my datasource and rebinding the control? thanks in advance The short answer is no.
Infragistics has built in support for you to store all of the rows in the ViewState of their webgrid control. The asp webgrid does not have this feature implemented. The .net 2.0 gridview control does have this feature. It is not trivial to extend the asp webgrid to include this feature. Search google for alternate options to the Infragistics or ComponentOne grids. -- Show quoteHide quoteStaff Consultant II - Enterprise Web Services - Cardinal Solutions Group Future Business Model - National City Mortgage "mjcast" wrote: > I am working on a web page, and I have to use paging on my datagrids. How do > I implement paging on the datagrid so that the paging works with just one > click and I do not have to reload my data. The datagrid already has data in > it, it just doesnt make sense to me to have to reload it. > > I am overriding this method > private void a_participantGroupDg_PageIndexChanged(object source, > System.Web.UI.WebControls.DataGridPageChangedEventArgs e) > { > a_participantGroupDg.CurrentPageIndex = e.NewPageIndex; > > } > but if i do this the paging is not applied till the next postback. Is there > a way to do this without reloading my datasource and rebinding the control? > > thanks in advance
How to update a Image control?
Infragistics Ultra Web Grid Updating Problem Listbox Webcontrol SelectedIndexChanged Event not working Who is the true Asp.Net MVP here? Trying hard to implement globalisation. Strange error message(urgent help needeed) Can't get the Microsoft Web Library load event doesn't fire unless init event is present Finding the leftmost pixel in a piece of text when using GDI+ How to view properties of control inside table Client Side Calculation involving controls in datagrid template co |
|||||||||||||||||||||||