I found it.
private void grd_DeleteCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
e.Item.Attributes.Add("OnClick", "return confirm('Are you sure you want to
delete this item?');");
}


"Salim Afþar" <safsar@luckyeye.com> wrote in message
news:eSauCL6SDHA.1920@TK2MSFTNGP11.phx.gbl...
> Hi,
> Can I show a message box after click event of a grid delete buttoncolumn?
> When the user clicks the button first I want to show a message box with
Yes
> + No option. Then if user clicks Yes I'll delete the data from the SQL
> Server DB.
> Thanks in advance,
> Salim
>
>
>