Home Forums WinForms controls Xceed Grid for WinForms Problem with GridComboBox boxes. Reply To: Problem with GridComboBox boxes.

User (Old forums)
Member
Post count: 23064

The DisplayMember can be any type you want to (preferably string), the ValueMember has to be of the same type is the DataTable-field.

Grid1 : DataSource/DataMember = DataTable1
DataTable1 has field DataField1
DataField1 in Grid1 : editor & viewer = GridComboBox1
GridComboBox1 : DataSource/DataMember = DataTable2
DataTable2 has fields DataFieldValue & DataFieldDisplay
GridComboBox1.ValueMember = DataFieldValue
GridComboBox1.DisplayMember = DataFieldDisplay

Voorwaarden: typeof(DataFieldValue) == typeof(DataField1)

Imported from legacy forums. Posted by Tommy (had 243 views)