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

[Solved] Cannot set CurrentPageIndex

1 Answer 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael Lang
Top achievements
Rank 1
Michael Lang asked on 25 Aug 2009, 09:09 AM
Hi,

i try to set the currentpageindex=0 by click on a button by doing this:

  RadGrid1.CurrentPageIndex = 0;
  RadGrid1.Rebind();

So there is no reaction, the currentpageindex doesn't change.

Thanks for you answers.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2009, 11:13 AM
Hello Michael,

I tried the same code and its working as expected on my end. I'm not sure as to what exactly is happening at your end but can you check if you are setting the page index of the RadGrid else where i.e., in PreRender event or so.

Thanks
Princy.


Tags
Grid
Asked by
Michael Lang
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or