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

Can not binding Property when using CellTemplateSelector

0 Answers 16 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 26 Nov 2013, 12:54 PM
Hello,

i use RadGridView and want to set a GridViewDataColumn using CellTemplateSelector. I have used the DataMemberBinding to bind the property, but my selector gets only the whole item data.
ex. i have ViewModel MyVM and some properties. One of them named Status. And the xaml code like below.

<telerik:GridViewDataColumn Width="40" ColumnGroupName="status" Header="Header"
 DataMemberBinding="{Binding Status}" SortMemberPath="Status"
 CellTemplateSelector="{StaticResource myDataTemplateSelector}"/>

The item in myDataTemplateSelector ist always MyVM instead of MyVM.Status.
Any idea? Thanks!

Ivan

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Ivan
Top achievements
Rank 1
Share this question
or