How can move next page(using third party control) in grid view

Posted by Sekar.C under ASP.NET on 6/7/2012 | Points: 10 | Views : 1572 | Status : [Member] | Replies : 1
Hi,
How can move next page(using third party control) my grid view used paging .grid display 5 pages if I move 3 page how can I do it .

Regards
Sekar.c



Responses

Posted by: Sekar.C on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
It my code
paging.aspx
<Behaviors>

<ig:Paging PagerAppearance="Bottom" PageSize="3" Enabled="true"></ig:Paging>
</Behaviors>

paging.cs
 protected void  grdUserTrainer_PageIndexChanged(object sender, PagingEventArgs e)

{
ShowGrid();
getUserDetails(l_intLocationId, l_intCourseId, l_dtStartDate, l_dtEndDate, l_intTraineeStatus);
if (e.OldPageIndex > 0)
{
grdUserTrainer.Behaviors.Paging.PageIndex = e.OldPageIndex - 1;
}
else
{
grdUserTrainer.Behaviors.Paging.PageIndex = e.OldPageIndex + 1;

grdUserTrainer.Behaviors.Paging.NextPageText = "next";
}


Regards
Sekar.c

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response