I have a GridView on my page. I want to set a cell click event on the EmployeeID, EmployeeName and Designation columns, but I don’t want to change the Approver column which contains Approve button and also on the Image columns.

I know that I can set e.Row.Attributes["onclick"] in my RowDataBound event, but that will make the whole row selectable, which I don’t want to do. Can anyone tell me how to set the cell click event on specific columns in a GridView?
1 Answer