<asp:CommandField ShowDeleteButton="True" />
protected void GVColors_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
e.Row.Cells[10].Attributes.Add("onclick", "javascript:return confirm('你确认要删除\"" + e.Row.Cells[1].Text + "\"吗?')");
}