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