This is a migrated thread and some comments may be shown as answers.

Page index setting in grid

2 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
naveen veda
Top achievements
Rank 1
naveen veda asked on 16 Mar 2009, 07:51 AM
hi,

at the time of page loading, how to set current page index as 2 in radgrid.


thanks,

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 16 Mar 2009, 08:37 AM
Hello Naveen,

Try the code snippet below for setting the current page index on loading the page.

CS:
protected void Page_Load(object sender, EventArgs e) 
    RadGrid1.CurrentPageIndex = 1; //Second page 

Thanks,
Shinu.
0
naveen veda
Top achievements
Rank 1
answered on 16 Mar 2009, 12:36 PM
Thanks Shinu, i got it.before that i was trying like this,

RadGrid1.CurrentPageIndex = 2; 
Tags
Grid
Asked by
naveen veda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
naveen veda
Top achievements
Rank 1
Share this question
or