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

Displaying datasource value in GridDropDownColumn

2 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Curt Gough
Top achievements
Rank 1
Curt Gough asked on 02 Apr 2010, 04:31 PM
I have a RadGrid with a GridDropDownColumn that is bound to a datasource - the RadGrid itself is bound, and the drop-down is bound to a separate datasource (I made a simple datasource for "Yes" and "No" values - seemed easiest). My trouble is that my GridDropDown 1) does not show the SelectedValue in Edit mode, and 2) does not show the SelectedValue in Item mode. My data source has three text values """, "Yes" and "No", and three corresponding values "", "Y" and "N". The DataField for the column will have a value of "", "Y" or "N". The value from the drop-down saves to the database correctly. It just doesn't show in the RadGrid column - nothing does. Here is the source for the column. Any help?

 

<telerik:GridDropDownColumn DataField="CLEARANCE" DataSourceID="dsYesNo"

 

 

HeaderText="Clearance" ListTextField="TEXT" ListValueField="VALUE"

 

 

UniqueName="CLEARANCE">

 

 

</telerik:GridDropDownColumn>

 

2 Answers, 1 is accepted

Sort by
0
Curt Gough
Top achievements
Rank 1
answered on 02 Apr 2010, 05:44 PM
My mistake. Please disregard. Your products work fine, just are not as "fool proof" as I would have hoped. Or, perhaps, I'm a better fool than I thought. ;-)
0
Graham
Top achievements
Rank 1
answered on 01 Jun 2010, 01:23 AM
I'm having what appears to be an identical problem, so I'd be curious to know what it was that fixed your problem.  Thanks.
Tags
Grid
Asked by
Curt Gough
Top achievements
Rank 1
Answers by
Curt Gough
Top achievements
Rank 1
Graham
Top achievements
Rank 1
Share this question
or