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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem related to GridDataBoundGrid combobox column.

Thread ID:





26582 Mar 28,2005 10:33 AM UTC Mar 28,2005 11:40 AM UTC WinForms 1
Tags: GridControl
Maqsood Ahmed
Asked On March 28, 2005 10:33 AM UTC

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

Administrator [Syncfusion]
Replied On March 28, 2005 11:40 AM UTC

I do not see this problem in this sample using version Do you? http://www.syncfusion.com/Support/user/uploads/GDBG_Combo_ArrayList_b55af043.zip One thing to check is to make sure the DataColumn DataType for the value column in the grid''s datasource is the same as the system.Type for the Value property in the IList datasource of the combobox.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon