Hello Andrea Marchetti,
I am not a VB specialist, but the code seems okay to me. Is it actually executed? Can you use the debugger? Does the debugger reach the code I suggested? Does it go inside the if?
You can add a boolean flag that will tell you whether you have performed this one-time operation and perform it according to this boolean flag instead of relying on the fact that PageIndex is -1, since I really don't know what you are doing in your project. Obviously, you are doing something different than my sample project, but you are the only one that knows what is it, since you now have both projects.
What is the difference between my sample project and yours?
Can you send me a dummy version of your project but only with the relevant stuff concerning this issue. In other words, I don't need your entire project with all kinds of other stuff but a dummy version of it that demonstrates what you are doing. I also need to be able to compile and run it without problems. In this way I will be able to debug it and see what is going on.
Thanks in advance.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items