public void grdManPower_DeleteCommand(object sender, DataGridCommandEventArgs e) { String ManPower_id = ""; ManPower_id = grdManPower.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString(); whitfield_reports _wRep = new whitfield_reports(); _wRep.DeleteManPowerEntries(ManPower_id); this.DisplayManPowerGrid(); }