Beispiel #1
0
        private static void deleteRow(object sender, System.EventArgs e)
        {
            var confirmResult = MessageBox.Show("Are you sure to delete row at index " + rowIndex + " ?",
                                                "Confirm:",
                                                MessageBoxButtons.YesNo);

            if (confirmResult == DialogResult.Yes)
            {
                DatabaseFunct.RemoveRow(DGV, rowIndex);
                Program.mainForm.RecenterSubTables();
            }
        }