470,620 Members | 1,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,620 developers. It's quick & easy.

"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount" Problem Still Error

Hi All,

I try to use the following microsft resolution web site, but still
have same problem.


I put the source code on "DataGrid_setPage"

//bind code
CheckOrder (null,null ); <---- Binding Function
datagrid1.currentpageindex = 0;
CheckOrder (null,null ); <---- Binding Function
//re-bind code

I also try to modify above code, I can't change pages. Pleasd advise.
Nov 16 '05 #1
1 2075

In your sample you have…

//bind code
CheckOrder (null,null ); <---- Binding Function

in the try. Then you have reversed the order in the catch…

CheckOrder (null,null ); <---- Binding Function
//re-bind code

Have you tried to put these in the same order? If this does not work I
would suggest that you disable view state for the datagrid. That seems to be
the safest all around method.

I hope this helps.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Christian Schmidbauer | last post: by
7 posts views Thread by Diandian Zhang | last post: by
7 posts views Thread by Jim in Arizona | last post: by
36 posts views Thread by Roedy Green | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.