protected void GV3_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
TableCell cell = new TableCell();
ImageButton bttn = new ImageButton();
bttn.CommandName = "Delete";
bttn.ImageUrl = "delete.png";
bttn.ToolTip = "Click to delete this record";
bttn.CommandArgument = e.Row.Cells[0].Text;
cell.Controls.Add(bttn);
e.Row.Cells.Add(cell);
bttn.OnClientClick = "return confirm('Are you sure you to delete " + e.Row.Cells[0].Text + "?');";
}
bttn.Click += new ImageClickEventHandler(b_Click);
private void b_Click(object sender, EventArgs e)
{ //delete record