Combo data not displaying in GridBoundDataGrid

Hi,
i am trying to use a Combo cell in GridBoundDataGrid.
by using the following code.
although i get a drop down with values but the selected value is not getting populated in the grid cell.


System.Collections.Specialized.StringCollection yesNo = new System.Collections.Specialized.StringCollection();
yesNo.Add("X");
yesNo.Add("Y");



grid.Model.ColStyles["Col1"].CellType ="ComboBox";
grid.Model.ColStyles["OD_Col1"].ChoiceList = yesNo;
grid.Model.ColStyles["OD_Col1"].DisplayMember="Destination";


Thanks
Pawan

1 Reply

AD Administrator Syncfusion Team February 28, 2007 07:28 PM UTC

Hi Pawan,

I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in the attached sample with Essentail studio V.4.x. I was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the attached sample to reproduce the issue here? This will help us to analyse the issue further.

Sample : GDBGComboBox.zip

Best regards,
Haneef

Loader.
Up arrow icon