//add a new field (column) private bool CreateNewColumn() { if (_table == null) return false; AddNewColum addCol = new AddNewColum(); if (addCol.ShowDialog() != DialogResult.OK) return false; _table.Columns.Add(addCol.Name, addCol.Type); dataGridView1.ClearSelection(); return true; }
private bool CreateNewColumn() { AddNewColum addCol = new AddNewColum(); if (addCol.ShowDialog() == DialogResult.OK) { _fs.DataTable.Columns.Add(addCol.Name, addCol.Type); OnNewFieldAdded(); } return true; }