Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
In my webpage I m using gridview which has next, previous button for page index. Each row has Edit, delete button. I want When I click the edit button, that time the next button won't worked.
But When i editing rows the next button is also working, So next page has that corresponding row will be changed to edited rows. For this I want to restrict using javascript. Can we find the neweditindex of the current row using javascript for restrict this issue? If it is possible, Please help me....
Posted
Updated 1-Apr-13 19:08pm
v2

1 solution

Rather than disabling next button
Use
C#
gridview1.editindex = -1
in your pageindexchanging event.
or
in you can disable button in OnRowEditing event & enable it in rowupdated & rowcancellingedit event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900