This is a migrated thread and some comments may be shown as answers.

ComboBox display blank until edit

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 13 Nov 2009, 07:58 PM
If your ComboBox column does not display values until you edit one of the values, check to make sure you populated the DataSource of the ComboBox before populating the DataSource of the Grid.
// BAD 
gridBindingSource.DataSource = _Repository.GetGridData(); 
comboBindingSource.DataSource = _Repository.GetComboData(); 
 
// GOOD 
comboBindingSource.DataSource = _Repository.GetComboData(); 
gridBindingSource.DataSource = _Repository.GetGridData(); 
 

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 19 Nov 2009, 10:33 AM
Hi Jon Masters,

Please explain your issue in more details as I could not understand what is wrong. Currently, the GridViewComboBoxColumn can only be added manually, it has no default relation to the data source of RadGridView.
I am looking forward to your reply.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jon
Top achievements
Rank 1
answered on 19 Nov 2009, 01:13 PM
My problem was that when I had my bindings in the wrong order, when the grid was initially displayed all the of values in the dropdown column where blank until I put my cursor into the column and changed one of the values and then the entire column of values suddenly appeared. 

Took me an hour to figure out what was going on, so I thought I'd put a posting here so that if any other dev made the same mistake that I did, they could more quickly diagnose the error and move along.  Think of it as an FYI.

0
Victor
Telerik team
answered on 23 Nov 2009, 09:24 AM
Hi Jon Masters,

It is good that you managed to overcome your issue. We are ready to assist you if you encounter other issues with our controls.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Jon
Top achievements
Rank 1
Answers by
Victor
Telerik team
Jon
Top achievements
Rank 1
Share this question
or