Hi,
I have two set of objects, that are related in the following way:
And I am binding the following set of properties on the grid:
But after doing this binding the column binded to O2.Addres canĀ“t be modified, grouped, filter. So I will like to know if this can be performed in some way.
Thanks
I have two set of objects, that are related in the following way:
public class MyObject1 |
{ |
private MyObject2 _o2 = new MyObject2() { Address = "CR" }; |
public MyObject2 O2 |
{ |
get |
{ |
return _o2; |
} |
set |
{ |
_o2 = value; |
} |
} |
public string Name |
{ |
get; |
set; |
} |
} |
public class MyObject2 |
{ |
public string Address |
{ |
get; |
set; |
} |
} |
And I am binding the following set of properties on the grid:
<telerik:RadGridView Name="radGridView1" ItemsSource="{Binding}" AutoGenerateColumns="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn UniqueName="Name" IsGroupable="True" IsReadOnly="False" IsFilterable="True" HeaderText="Name" DataMemberBinding="{Binding Name}" /> |
<telerik:GridViewDataColumn UniqueName="Address" IsGroupable="True" IsReadOnly="False" IsFilterable="True" DataMemberBinding="{Binding O2.Address}" HeaderText="Address" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
But after doing this binding the column binded to O2.Addres canĀ“t be modified, grouped, filter. So I will like to know if this can be performed in some way.
Thanks