Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataGrid and Paging.

Reply
Thread Tools

DataGrid and Paging.

 
 
mjcast
Guest
Posts: n/a
 
      06-29-2005
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.DataGridPageChangedEvent Args 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
 
Reply With Quote
 
 
 
 
Michael Baltic
Guest
Posts: n/a
 
      06-29-2005
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.
--
Staff 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.DataGridPageChangedEvent Args 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
DataGrid.Items.Count and DataGrid Paging... Green Start Button ASP .Net 2 08-02-2006 02:01 AM
Edit All Function for DataGrid, and Moving the Edit Function in a DataGrid Schultz ASP .Net 3 02-14-2005 04:47 AM
datagrid , SQL Reader and Paging... Datagrid disappears Roger ASP .Net 0 12-28-2004 04:05 PM
DataGrid ItemStyle is a textbox and doesn't update the datagrid datasource matthew schouppe ASP .Net 3 04-30-2004 03:02 PM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments