Displays and Symbols > User Controls > Configuring a DataGrid Window
  
Configuring a DataGrid Window
Double-click any DataGrid window object in the display to configure it. Table 23 describes the Data Grid window configuration. Critical fields that you must configure are shown with an *.
 
Table 23: Data Grid window configuration 
Field
Description
Control Name
Defines a name for the control, so it can be accessed in the code-behind script. See Displays Code Behind.
Data Source
Enter the dataset table or query to use for the window.
SelectedValues
Enter a string tag or array tag to receive the contents of the selected row.
SelectedIndex
Enter a tag to receive the number of the currently selected row. Row numbering starts with 0.
LinesCount
Select a tag to receive the number of lines in the window.
Theme
Select the theme for the window.
BindindMode
AllowInsert
Select to let users add rows.
Show Group Control, Label
Enter text to display above the column titles.
Show Column Titles
Select to display column titles.
AllowSort
Select to let users sort the data by column.
Auto Create Column
Select to have the system automatically include all table or query columns in the window. If selected, you do not have to configure the columns below. To customize specific columns, add the column to the column list and configure the settings to the right (described below).
Deselect to manually configure each column that you want to include using the Columns list and settings to the right (described below).
Filter
Enter SQL statement to limit the data displayed.
Refresh
Enter a tag name that will trigger a refresh of the data.
Columns
For each column you want to customize or include manually, add the column and configure the settings to the right of the list (described below).
Visible
Select for column to display in the data grid window.
Editable
Select to let users edit the column.
Show in Column Chooser
Select to include the column in the column chooser, which lets users select the columns to display.
FieldName
Enter a name for the column.
FieldType
Select the column data type.
Title
Enter the text for the column header.
Width
Enter the initial column width, in WPF units (device-independent pixels).
Sort
Select how to initially sort the column.