Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we have a enable delete button in gridview. and we have a row deleting event of a grid veiw to write the coding for delete functionality...

i have a list of users. and waant to show them in gridveiw and in addition to delete functinality . i also want to put a link button in gridview. and want to implement a disable user using that link button..

i want to know which event of grid view i have to invoke to implement disable functionality through linkbutton.

i am using bits using 0 and 1 to enable disable and enable fucntionality..
Posted

1 solution

You can use Grid_RowCommand Event, where you will be able to get the row_Index property in EventArgs 'e' parameter, If required you can also set command argument property, which will help you to identify the rowId. in the Object source parameter you will get the commanding button which you can disable after completion of 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