Hi.
Small problem:
Imagine a class setup of:
Now I have an ObservableCollection<DisplayData> to display in my Grid.
Problem is the following setup does no display SomeOtherClass nicely (how should it...)
If I change the second column like this:
All displays fine. However I loose the Ability to Filter/Group the second column.
I am searching for something like:
And I can't seem to find any solution..
I seem to walking in the dark here.. so could someone please enlighten me ?
Yours,
Nils
Small problem:
Imagine a class setup of:
public class DisplayData |
{ |
public string Name { get; set; } |
public SomeOtherClass Prop { get; set; } |
} |
public class SomeOtherClass |
{ |
public string OtherName { get; set; } |
} |
Now I have an ObservableCollection<DisplayData> to display in my Grid.
Problem is the following setup does no display SomeOtherClass nicely (how should it...)
<telerik:GridViewDataColumn |
Header="Name" |
DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
Width="2*" |
IsReadOnly="True"/> |
<telerik:GridViewDataColumn |
Header="Other" |
DataMemberBinding="{Binding Path=Prop, Mode=OneWay}" |
Width="3*" |
IsReadOnly="True"/> |
If I change the second column like this:
<telerik:GridViewDataColumn |
Header="Name" |
DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
Width="2*" |
IsReadOnly="True"/> |
<telerik:GridViewDataColumn |
Header="Other" |
DataMemberBinding="{Binding Path=Prop.OtherName, Mode=OneWay}" |
Width="3*" |
IsReadOnly="True"/> |
All displays fine. However I loose the Ability to Filter/Group the second column.
I am searching for something like:
<telerik:GridViewDataColumn |
Header="Name" |
DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
Width="2*" |
IsReadOnly="True"/> |
<telerik:GridViewDataColumn |
Header="Other" |
DataMemberBinding="{Binding Path=Prop, Mode=OneWay}" |
DisplayMemberPath="OtherName" |
Width="3*" |
IsReadOnly="True"/> |
And I can't seem to find any solution..
I seem to walking in the dark here.. so could someone please enlighten me ?
Yours,
Nils