Hey guys,
I'm using the MultiColumn ComboBox to select an item for editing. The ComboBox ties into a DataTable. That DataTable has the following columns of interest:
1. An integer column, "id", the primary key.
2. A string column, "code"
3. A string column, "description"
4. A string column, "display"
There are other columns, but they're not important.
The "display" column is calcualted by a SQL statement before it gets to the table - the Column itself doesn't understand that it is an expression column.
I want the "display" column to be the DisplayMember. But I do not want that column to be visible when I use the Drop-Down of the comboBox.
When I get the gridView inside the Drop-Down, and set the "display" column .IsVisible = false, the column goes away from the Drop-Down, but the DisplayMember no longer works. I get the "code" column, not the "display" column.
Is there a way to hide the column used by the DisplayMember? Or will I have to assign it manually every time a new row is selected in the Drop-Down?