Example #1
0
        private void btnAddRow_Click(object sender, EventArgs e)
        {
            NewRowForm newRowForm = new NewRowForm(this);

            if (newRowForm.ShowDialog() == DialogResult.OK)
            {
                DataGridManager dataManager = new DataGridManager(customDataGridView);
                dataManager.AddRow((int)newRowForm.rowPosition.Value, newRowForm.rowContent.Text);
            }
        }