views:

47

answers:

0

I am using a GridView inside a UserControl which has a template column for deleting the rows. Before databinding the gridview i am attaching the RowCommand and RowDataBound event.

I am using the RowDataBound event to set the commandargument of the delete button. The event is being fired and works fine.

When I press the delete button, the RowCommand event is not firing! and neither is the RowDeleting (the button's commandName is "Delete") Any idea why?