add OnRowCommand="g rd_RowCommand" to gridview


add a column
<asp:ButtonFiel d ButtonType="But ton" CommandName="cm d" Text="CMD" />


protected void grdApplicationS ettings_RowComm and(object sender, GridViewCommand EventArgs e)
{
GridView customersGridVi ew = (GridView)e.Com mandSource;
int index = Convert.ToInt32 (e.CommandArgum ent);...