public FormSchemas() { InitializeComponent(); DataGridViewBrowseCell template = new DataGridViewBrowseCell(); template.UndoManager = this.undoManager; template.OpenFileDialog = this.openFileDialog1; this.columnBrowse.CellTemplate = template; this.dataGridView1.CellValidating += new DataGridViewCellValidatingEventHandler(dataGridView1_CellValidating); this.undoManager.StateChanged += new EventHandler(undoManager_StateChanged); }
public FormSchemas() { InitializeComponent(); DataGridViewBrowseCell template = new DataGridViewBrowseCell(); template.UndoManager = this.undoManager; template.OpenFileDialog = this.openFileDialog1; this.columnBrowse.CellTemplate = template; this.dataGridView1.KeyDown += new KeyEventHandler(dataGridView1_KeyDown); this.dataGridView1.CellValidating += new DataGridViewCellValidatingEventHandler(dataGridView1_CellValidating); this.undoManager.StateChanged += new EventHandler(undoManager_StateChanged); }