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

GridViewComboBoxColumn Issue

3 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 23 Apr 2010, 01:28 AM
When I'm using a GridViewComboBoxColumn after a user selects a value it shows the selected value (an integer ID field) instead of the displaymemberpath.  Here's my XAML for that column:

<telerik:GridViewComboBoxColumn Header="Schedule Type" DataMemberBinding="{Binding BookingTypeID}" SelectedValueMemberPath="BookingTypeID" DisplayMemberPath="BTName" ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type u:NewSchedules}, AncestorLevel=1},Path=BookingTypes}" /> 

Any ideas on how to get the column to display the text of my combobox instead of the selected value?

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 28 Apr 2010, 12:52 PM
Hello Dean,

Your XAML seems OK , however to find the reason for the problem ,  I will need a bit more info .

Can you please paste me the implementation of the underlying business objects  - the ones used to populate the grid and the ones used in the ComboBoxColumn items source.
This will help me  prepare a working sample for you with your objects

Sincerely yours,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Dean
Top achievements
Rank 1
answered on 28 Apr 2010, 07:22 PM
It's actually not an issue anymore.  We decided to just create our own custom column type that fixes the problem and behaves how we want it to.
0
Dean
Top achievements
Rank 1
answered on 28 Apr 2010, 09:47 PM
For the record: I was just using a DataView as the underlying object my binding was referencing.  It seems like things don't work as well with DataViews as they do with entity classes (based solely on my anecdotal evidence and observations).
Tags
GridView
Asked by
Dean
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Dean
Top achievements
Rank 1
Share this question
or