Posted 10 September 2017, 11:33 am EST
I have a C1GridView in my webform that contains a Template Column containing a C1ComboBox.
The GridView is bound to the parent table showing what has already been entered by the user. I want to bind the combobox in the Edit Item Template to the lookup table for which the values for that column may be selected from.
The problem occurrs when the user edits a previously entered row. The C1ComboBox does not have a SelectedValue property to bind the previously entered value to. I can bind to the Text property of the C1ComboBox but that doesn't help if the value is a Code and the Text property will not Select the item in the Combo.
How does one Bind the C1GridView to a parent table and a C1ComboBox in an EditItemTempate column to the lookup table for which it's values are associated and Select the correct value in the C1ComboBox on Edit?