private void buttonAddRow_Click(object sender, EventArgs e) { // add values dataForm.AddRow(new string[] { "10", "20" }); // show a modal second form, so that the first can not be selected while the second is open! dataForm.ShowDialog(this); }