Add a drop-down listnotes in the DataGrid column, non-original

xiaoxiao2021-03-06  109

// note, non-original private void AddGrdComBox () // add datagrid column dropdown {DataGridTextBoxColumn dgtb = (DataGridTextBoxColumn) grd_please.TableStyles [0] .GridColumnStyles [8]; // 8 is the column number

ComboBox CMBFunctionArea = New ComboBox ();

CMBFunctionArea.Items.addrange (new object "," original "," copy "," original "});

CMBFunctionarea.cursor = Cursors.Arrow;

CMBFunctionArea.dropdownStyle = ComboBoxStyle.dropdownList;

CMBFunctionArea.dock = DOCKSTYLE.FILL;

CMBFunctionArea.selectionChangeCommitted = New EventHandler (CMBFunctionArea_selection);

DGTB.TextBox.Controls.Add (CMBFunctionarea);

}

转载请注明原文地址:https://www.9cbs.com/read-104540.html

New Post(0)