FlexGrid Architecture
FlexGrid displays data in a tabular form and allows users to edit it or modify the views by sorting, filtering, and grouping it.
Like all other CMVC controls, the grid delegates all data-related tasks to the CollectionView class.
When you set the itemsSource property of grid to an array, or ObservableArray, the grid automatically creates a CollectionView instance to wrap the original array. This CollectionView can be accessed through the collectionView property.
For example, the grids below are bound to the same data array. Each one has its own internal CollectionView, so they can be sorted, filtered, and grouped independently. The current item (associated with the grid selection) is also independent:
By contrast, the two grids below are bound to the same CollectionView. Because of this, they show the same view. Sorting, filtering, or selecting on one grid affects the other.
Observe how sorting, filtering, and selection applied to the common view is also reflected on other controls such as ListBox: