diff --git a/Forms/ItemDistributionForm.cs b/Forms/ItemDistributionForm.cs index 1064bc8..7e3c259 100644 --- a/Forms/ItemDistributionForm.cs +++ b/Forms/ItemDistributionForm.cs @@ -149,30 +149,6 @@ private void RefreshDistributionDisplay() dataGridView1.DataSource = dataTable; } - private void DataGridView1_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Space) - { - e.Handled = true; - var i = 0; - foreach (var cell in dataGridView1.SelectedCells) - { - if (cell is DataGridViewCheckBoxCell checkBoxCell) - { - if (checkBoxCell.Value is bool isChecked) - { - checkBoxCell.Value = !isChecked; - } - else - { - // This cell is null for some reason. - checkBoxCell.Value = true; - } - } - } - } - } - private void DataError(object sender, DataGridViewDataErrorEventArgs e) { MainForm.ShowDataError();