|
|
|
@ -12,6 +12,18 @@ See the [[Advanced DataGrid]] page for a list of differences between the Toolkit |
|
|
|
|
|
|
|
[[DataGrid_grid.jpg]] |
|
|
|
|
|
|
|
### Remarks |
|
|
|
|
|
|
|
When declaring the DataGrid in code behind, a default view must be set. |
|
|
|
|
|
|
|
For example: |
|
|
|
``` |
|
|
|
dataGridControl.View = new Xceed.Wpf.DataGrid.Views.TableflowView(); |
|
|
|
``` |
|
|
|
|
|
|
|
Otherwise, depending on which version is being used, an exception can occur or the DataGridControl could be unusable at run-time. |
|
|
|
|
|
|
|
|
|
|
|
### Usage |
|
|
|
|
|
|
|
**XAML** |
|
|
|
|