I am having an issue when I use a comboboxEditor for a cell. I set the DisplayFormat property to only show 1 column, in code of via properties panel, yet when the code runs, it displays all of the fields in that lookup table for the combobox.
What the heck am I doing wrong.
Sample code:
ComboBoxEditor comboBoxEditor = new ComboBoxEditor(flameDataSet1.Source, String.Empty, “SourceID”);
comboBoxEditor.TemplateControl.DisplayFormat = “%ShortName%”;
comboBoxEditor.TemplateControl.Columns[“SourceID”].Visible = false;
ComboBoxViewer comboBoxViewer = new ComboBoxViewer(flameDataSet1.Source, string.Empty, “SourceID”, “%ShortName%”);
this.gridControl3.Columns[“SourceID”].CellEditorManager = comboBoxEditor;
this.gridControl3.Columns[“SourceID”].CellViewerManager = comboBoxViewer;
It displays the proper values and saves the proper values, just the drop down portion of the combobox is weird.
Thanks,
DD
Imported from legacy forums. Posted by Doug (had 2452 views)