private void RemoveButton_Click(object sender, EventArgs e) { int id = (int)ContractTable.CurrentRow.Cells[0].Value; contractLogic.Remove(id); }