From 9cf7af657fcfc0ce7c202896f5a191fe1b5dd90b Mon Sep 17 00:00:00 2001 From: DianeXceed <29433908+DianeXceed@users.noreply.github.com> Date: Thu, 7 Jun 2018 11:47:42 -0400 Subject: [PATCH] Updated DataGrid (markdown) --- DataGrid.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/DataGrid.md b/DataGrid.md index 29a2ec7..55364be 100644 --- a/DataGrid.md +++ b/DataGrid.md @@ -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**