Hello!
I am facing a strange problem related to gdbg combobox column.
Scenario:
---------
I have a gdbg with a table as its datasource. A column in the gdbg is a combobox column. this column is mapped to one of the datacolumn in the table.
Combobox''s datasource is an IList containing structures which have Display and value members. Consider that Display is different than value.
Problem:
--------
When I change the value in Combobox it reflects on the grid ok, but when I get its value from the table, it gives me the "Display" of combo, while I am expecting the "Value" of the combo. GridBoundColumn is mapped for the values, not for the displays.
Example:
--------
I have 2 members in the IList source.
1. Display: "Mike", Value: "100"
2. Display: "Xen", Value: "101"
I selected Mike from the list and I expect the DataColumn for the row contains "100" in it, but i contains "Mike".
thanks in advance.
Maqsood Ahmed
Kolachi Advanced Technologies
http://www.kolachi.net