I have an UltraCombo with a DataTable as the datasource. The DataTable has over 10 columns but I only need to show 2 columns in the dropdown. How can I do this without defining each column in the designer and setting it to hidden?
Typically, you would use the InitializeLayout event of the combo. From there, you can access e.Layout.Bands.Columns["my column"].Hidden and set it to true for the columns you want to hide.
I found a property on ultraWinGrid control that give me exactly what I need. If I set the control.DisplayLayout.NewColumnLoadStyle = Hide, it will hide any columns that are in the DataSource but not defined in the columns collection of the control.