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

ComboBox - Selected value diplayed as empty string

Thread ID:

Created:

Updated:

Platform:

Replies:

43492 Apr 24,2006 04:00 PM UTC May 2,2006 11:26 AM UTC Windows Forms 3
loading
Tags: GridControl
Ravichandran
Asked On April 24, 2006 04:00 PM UTC

Hi, i) In GridControl I am binding a combox box during runtime. But the selected values becomes blank once I moved to other cell or row. I am using Syncfusion 2.0.5.1 Suite. ii)If I got that right then I need to set the value to Combobox based on DB value. Thanks Ravi.

Administrator [Syncfusion]
Replied On April 25, 2006 06:06 AM UTC

Hi Ravichandran, Attached is a sample which works fine in version 2.05 and also the combo box cell (combo box control and integrated ComboBox cell) were bound to a data source. Please take a look at the sample in \Syncfusion\Essential Suite\2.0.5.1\Grid\samples\CellTypes\ComboboxCells to know more on ComboBox cell types. Regards, Calvin.

434980.zip

Ravichandran
Replied On May 2, 2006 10:41 AM UTC

Hi, Now I could able to populate the data using our datasource. But one more thing I want is that while populating the ComboBox should to position to the exact value as in my Datasource. ( right now combo is populated with data in alphabital order.) Eg. If the value from DB is GB---> then combo box should display the display member "England". pls reply me ASAP. Thanks & Regards Ravi >Hi Ravichandran, > >Attached is a sample which works fine in version 2.05 and also the combo box cell (combo box control and integrated ComboBox cell) were bound to a data source. Please take a look at the sample in \Syncfusion\Essential Suite\2.0.5.1\Grid\samples\CellTypes\ComboboxCells to know more on ComboBox cell types. > >Regards, >Calvin.

434980.zip

Administrator [Syncfusion]
Replied On May 2, 2006 11:26 AM UTC

Hi Ravichandran, I tried to reproduce the issue by changing the display member value in the data source but not able to see the mentioned issue. The combo box cell’s list box is getting populated in the same order as in the data source. Please change the GetTable method in the earlier sample as below and let me know how to see the issue in the sample, or please send a sample demonstrating the issue so that we can get back with a solution at the earliest. DataTable GetTable() { DataTable dt = new DataTable (); for(int i = 0; i< 5 ;i++) dt.Columns.Add("Column" + i); for(int j = 0; j< 5 ;j++) { DataRow row = dt.NewRow(); for(int i = 0; i< 5 ;i++) row[i] = Convert.ToChar(69-j)+"Cell" + j +"," + i; dt.Rows.Add(row); } dt.AcceptChanges(); return dt; } Regards, Calvin.

CONFIRMATION

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.

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

;