Click here to Skip to main content
13,052,342 members (41,567 online)
Rate this:
 
Please Sign up or sign in to vote.
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 1-Apr-13 19:07pm
UshaCbe407
Updated 1-Apr-13 19:08pm
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 2 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100