I have a RadGridView which has its ItemsSource property bound to the the DefaultView of a DataTable that is created and updated by a ViewModel. The GridView has the AutoGenerateColumns property set to true.
When columns are added to this DataTable and the PropertyChanged event is fired, the new columns are not added to the GridView.
Also, when columns are removed from the DataTable and the PropertyChanged event is fired, the data from these columns is removed from the GridView, but not the columns themselves.
Does the AutoGenerateColumns property only generate columns when the control is initialized? Does this behavior of dynamically removing and adding columns as the underlying DataTable is changed not exist?
When columns are added to this DataTable and the PropertyChanged event is fired, the new columns are not added to the GridView.
Also, when columns are removed from the DataTable and the PropertyChanged event is fired, the data from these columns is removed from the GridView, but not the columns themselves.
Does the AutoGenerateColumns property only generate columns when the control is initialized? Does this behavior of dynamically removing and adding columns as the underlying DataTable is changed not exist?