Line 101: if (chkBox.Checked) Line 102: { Line 103: int id = Convert.ToInt32(gvEmployee.DataKeys[objData.RowIndex].Value.ToString()); Line 104: Line 105: objB.Delete(id);