The front-end code:
DataGrid2D: Index StartAt="{Binding DataIndexBase}"
DataGrid2D: ItemsSource. ColumnHeadersSource="{Binding MaterialSizeColumnHeaders}"
DataGrid2D: ItemsSource. RowsSource="{Binding MaterialSizeMatrix}"
ColumnWidth="auto"
GridLinesVisibility="All"
HeadersVisibility="All"
IsReadOnly="True"
CanUserSortColumns="False" & gt;
Backend updates code:
While (MaterialSizeMatrix. Count & gt;=25)
MaterialSizeMatrix. RemoveAt (0);
MaterialSizeMatrix. Add (new ObservableCollection