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

Column Expression. Concatenating DisplayMember from ComboBox

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MSu
Top achievements
Rank 2
MSu asked on 17 Sep 2014, 07:55 AM
I have a GridView ComboBox Column.
In a other Column I'm trying to show the Display Member from the ComboBox Column.
But when I use the Column Expression it shows always the Value Member of the ComboBox.

Any Ideas?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Sep 2014, 03:37 PM
Hi Marco,

Thank you for writing.

I am not sure why you want to display the display member of the combo column to another column (the values in both columns will look the same). However in this case you have to populate the second column manually. To achieve this you can use the values form the combo column and retrieve the display member from the combo box column data source. For example you can use the DataBindingComplete event to populate the column cells. In addition you can update the values when the user changes the combo box value by using the CellValueChanged event. 

Let me know if you have additional questions.

Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
MSu
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Share this question
or