This question is locked. New answers and comments are not allowed.
Hello,
I'm using the RadDataGrid with a collection of columns that are bound to the data source using something like:
<telerikGrid:RadDataGrid GridLinesVisibility="Horizontal" Grid.Column="1" Name="dataGrid" AutoGenerateColumns="False" UserFilterMode="Enabled" UserEditMode="None" UserSortMode="Single">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="Property1" Header="Header1"/>
<telerikGrid:DataGridTextColumn PropertyName="Property2" Header="Header2"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
My items source is a collection of objects that have the following properties:
string Property1
string Property2
KeyValuePair<string, string> Property3
Is it possible to dynamically generate columns based on the key values of Property3 and bind them to the corresponding values of the same property?
I'm using the RadDataGrid with a collection of columns that are bound to the data source using something like:
<telerikGrid:RadDataGrid GridLinesVisibility="Horizontal" Grid.Column="1" Name="dataGrid" AutoGenerateColumns="False" UserFilterMode="Enabled" UserEditMode="None" UserSortMode="Single">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="Property1" Header="Header1"/>
<telerikGrid:DataGridTextColumn PropertyName="Property2" Header="Header2"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
My items source is a collection of objects that have the following properties:
string Property1
string Property2
KeyValuePair<string, string> Property3
Is it possible to dynamically generate columns based on the key values of Property3 and bind them to the corresponding values of the same property?