4 Answers, 1 is accepted
Please try the following code snippet to raise the Client Event on GridButtonColumn.
That doesn't work for me. I get: Unable to cast object of type 'GridButtonColumnImageButton' to type 'System.Web.UI.WebControls.Button'.
The ButtonType property of the column determines what type of control is used. If you don't know what that will be, you should add some defensive type checks.
Also, if you want full control over the code, you should use a template column - you can add your own button there with the desired logic, and command name, and appearance.