Data Binding
Data binding is the process of connecting the FlexGrid to a data source so you can use it to see and edit collection of items.
Unbound Grids
Although generally grids are used in bound mode, FlexGrid can also be used as an unbound control. You can add rows and columns to a grid and use the setCellData and getCellData methods to get or set the data in each cell:
Auto-Generating Columns
To use FlexGrid in bound mode, set its itemsSource property to an array or CollectionView containing the data. The grid will automatically create columns for each property in the data items:
Defining Columns in Code
Automatically generating columns is convenient in some scenarios, but in most common cases it is required to explicitly tell the grid which columns to show and how to format them. You can do this by setting the autoGenerateColumns property to false and populating the grid's columns collection: