protected void MyDataGrid_Delete(object source, DataGridCommandEventArgs e) { //string StyleID = dgStyleList.DataKeys[e.Item.ItemIndex].ToString(); string StyleID = e.Item.Cells[0].Text; UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); df.DeleteFieldValue(Int32.Parse(StyleID)); df = null; Bangding(); }