Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gridview: Enable/Disable edit/remove buttons

Status
Not open for further replies.

pinkpoppy

Programmer
Jul 6, 2011
75
US
Hi,

I have a gridview that users can select data from a dropdown and enter data in a textbox. They can enter how ever many records they have. They can edit/update/remove/cancel after they have saved.

When they click EDIT on a record, they modify the record, then they click UPDATE to update the record. But I need the other records in the gridview edit/remove buttons to be disabled while a record is in edit mode. How can I do this?

any help/suggestions is appreciated!
 
In the event that puts the gridview in edit mode... you will have to loop through all of the rows in the gridview, find the controls, and disable them, or if they are in a separate column, just hide the column.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top