Link to home
Start Free TrialLog in
Avatar of Sukeshjph
Sukeshjph

asked on

Avoiding onrowcommand event in paging

Hi in my gridview when i click on page tabs i get to first rowcommand and then paging event.Some pages i am getting error "index out of range",as i am setting the e.commandargument to rowindex and getting it back in rowcommand to acces the servercontrols.But i think during paging it first fires the onrowdatabound and e.commandargument is set to the page no=pageindex+1.That is why i am getting index out of range error as before setting the pageindex it tries to find out e.commandargument.
ASKER CERTIFIED SOLUTION
Avatar of anyoneis
anyoneis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial