string OrderID = e.Row.Cells[1].Text;
string _jsEdit = "showModalDialog('GridviewEditUpdateDelete.aspx?id=" + OrderID + "',null,'dialogWidth=650px;dialogHeight=500px;help:no;status:no')";
e.Row.Cells[7].Attributes.Add("onclick", _jsEdit);
//这里是在gridView中的一行中的Button的添加事件