In order to use the C1DataGrid to create an application that enables you to read and write to most databases it is useful to understand how the main properties map into datagrid elements.
The steps involved in displaying and editing the datagrid are:
-
You can automatically generate the column's headers in the grid by either binding the grid by setting the ItemsSource property to an IEnumberable implementation or by using the DataGridColumn Collection Editor.
-
Once the data is set for the grid you can determine whether or not you want to generate the columns automatically or configure the columns explicitly. Set the
AutoGenerateColumns property to False to configure the columns explicitly or True to generate the columns automatically.
-
You can then edit (delete, rearrange, and add) the datagrid's columns. For more information see
Run-time Interaction.