There are two options to do that: + In the handler of the RowCreated/RowDataBound event of the GridView control, you can access the Delete button control from a specified cell, and assign the confirm script method to the OnClientClick property of the button control. + Convert the CommandField to the TemplateField, you then easily set the confirm message box to the Delete button.