I have built a grid dynamically including the following button column...
...
GridButtonColumn buttonColumn = new GridButtonColumn();
buttonColumn.ButtonType =
GridButtonColumnType.ImageButton;
buttonColumn.ImageUrl =
"~/images/delete.png";
buttonColumn.CommandName =
"Delete";
buttonColumn.UniqueName =
"deleteColumn";
buttonColumn.HeaderStyle.Width = 16;
buttonColumn.ConfirmText = (
"Confirm Delete");
buttonColumn.ConfirmTitle =
"Delete Item";
RadGrid1.Columns.Add(buttonColumn);
....
and then added
...
RadGrid1.DeleteCommand += new GridCommandEventHandler(RadGrid1_DeleteCommand);
...
I have the setup the event as follows...
protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)
{
Code here...
}
However, when I run up the application and click on the delete button in the grid, it never reaches the DeleteCommand event, it just does a postback. Please can someone help with this.
Many thanks
Dave