We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Combo box selected item displaying empty value some times...Gridcontrol with Combobox

Combo box selected item displaying empty value some times...
I am using below code....
 
<sync:GridDataVisibleColumn HeaderText="Week"  MappingName="Week">
                                                            <sync:GridDataVisibleColumn.ColumnStyle>
                                                                <sync:GridDataColumnStyle CellType="ComboBox"
                                                                                          DisplayMember="Description"
                                                                                          DropDownStyle="Exclusive"
                                                                                          ValueMember="Value" />
                                                            </sync:GridDataVisibleColumn.ColumnStyle>

Attachment: GridControl_with_Combobox_a41cb4e2.zip

1 Reply

SP Sowndaiyan Paulpandi Syncfusion Team November 5, 2015 05:17 PM UTC

Hi Raju,

Sorry for the delay caused.

We have analyzed your query with your provided code example. In GridDataControl, the property that you have used in ValueMember should be the same type of the property that you have used for MappingName. And also the corresponding value that you loaded in MappingName property should be present in the collection of ValueMember property. For you reference we have prepared a sample with DisplayMember and ValueMember in ComboBoxColumn and you can download the sample form the following location,

Sample Location : http://www.syncfusion.com/downloads/support/forum/121016/ze/ComboBoxBinding117115572

Please let us know if you need further assistance.


Regards,
Sowndaiyan



Loader.
Live Chat Icon For mobile
Up arrow icon