This question is locked. New answers and comments are not allowed.
I am binding DataGridTextColumn headers to properties of a ViewModel - which basically works ok:
However, if properties are updated dynamically, these changes do not get reflected when binding is done like this.
Is there a better way to bind column headers to properties so that dynamic changes are reflected?
Thanks,
Andreas
<Control.Resources> <local:ActiveCollectionViewModel x:Key="viewModel"/></Control.Resources>...<Grid.DataContext> <local:ActiveCollectionViewModel /></Grid.DataContext>...<Grid:RadDataGrid AutoGenerateColumns="False" > <Grid:RadDataGrid.Columns> <Grid:DataGridTextColumn Header="{Binding Path=ActiveQuestionLabel,Source={StaticResource viewModel}}" PropertyName="Question" /> <Grid:DataGridTextColumn Header="{Binding Path=ActiveAnswerLabel,Source={StaticResource viewModel}}" PropertyName="Answer" /> </Grid:RadDataGrid.Columns></Grid:RadDataGrid>However, if properties are updated dynamically, these changes do not get reflected when binding is done like this.
Is there a better way to bind column headers to properties so that dynamic changes are reflected?
Thanks,
Andreas