-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: AjaySingala[Synergetics]
Message 2 in Discussion

Mahesh,

Here's what U need to do for pagination on a DataGrid control (Note that this is for 
WebForms only):

1) Select the DataGrid, right-click and select Property Builder.
2) Enable paging and set the page size. If required, specify the style of the paging 
controls.
3) Code for an event handler for the pagination. Select the DataGrid control, go to 
the Properties window, select the "Events" tab and double click on "PageIndexChanged" 
event and it will take U to the code-behind where U need to write the following code:

private void DataGrid1_PageIndexChanged(object source, 
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
   DataGrid1.CurrentPageIndex = e.NewPageIndex;
   DataGrid1.DataBind();
}

HTH.

Regards,

Ajay Singala [Synergetics].


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to