Data Grid
- Last UpdatedJun 25, 2024
- 14 minute read
Use Data Grid control to display data in tabular form from a data source in your form.
Properties
The properties for the control are grouped under the following tabs:
Basic
|
Property |
Description |
|---|---|
|
Name |
Name that identifies the control. This value is also used for the label of the control. |
|
XML Node |
XML node mapped to the control. Use this value to map a list to a form and a form to a workflow.
Note: |
|
Description |
Description for the control. |
|
Tooltip |
Message that appears when the pointer hovers over the control. |
|
Configuration Name |
Specifies grid view configuration. To specify grid view configuration
|
Appearance
|
Property |
Description |
|---|---|
|
Visible |
Show or hide the control.
|
|
Read-Only |
Allow or deny a user to enter a value for the control.
|
|
Label Position |
Position of the label for the control.
Note: |
|
Label-Control Area |
Area occupied by the label and the control in percentage.
Note: |
|
Width |
Width in pixels for the control. The default value is 0. Note: If the value is 0, then the width of the control is set as per the default values. |
|
Height |
Height in pixels for the control. The default value is 0. Note: If the value is 0, then the height of the control is set as per the default values. |
|
Consider Available Height |
Resize the height of the control or container based on the available height.
Note: |
|
Rearrange Columns |
Allow or deny a user to reorder the columns by dragging the header cells.
Note: |
|
Resize Columns |
Allow or deny a user to resize the columns by dragging the edges of the header cells.
|
|
Retain Space |
Reserve or remove space when the control is hidden.
|
|
Multiple Selection |
Allow or deny a user to select multiple records for the control.
|
|
Show Export Button |
Show or hide the export button for the control.
Note: |
|
Export Type |
File type of exported data for the control.
Note: |
|
Export All Pages |
Allow or deny a user to export all pages for the control.
|
|
Adapt UI |
Change the user interface of the control based on the display width.
Note: The responsiveness of the container depends on the value set for the Desktop View Only property at the Form level. |
Validation
|
Property |
Description |
|---|---|
|
Mandatory |
Enforce or bypass entering a value for the control.
|
Advanced
|
Property |
Description |
|---|---|
|
On Data Bound |
Run a script when data is bound to the control. For more information, see scripting guidelines for On Data Bound property. |
|
On Data Change |
Run a script when value of the control changes. Note: In a data grid, if the persist column is of bit type, then the On Data Change event does not trigger as expected. For more information, see scripting guidelines for On Data Change property. |
|
On Selection Change |
Run a script when selection of the record changes. For more information, see scripting guidelines for On Selection Change property. |
|
ID |
Reference identification code for the control. This value is automatically generated and cannot be changed. |
|
Behavior |
Show or hide data for the control.
|
|
Execution Mode |
Allow or deny a user to retrieve data for server calls immediately.
Note: In a hierarchical grid,this property is applicable only at the root level. The child levels are always in the Asynchronous mode. |
|
Dynamic Page Size |
Display records per page based on the available height.
Note: |
|
Page Size |
Number of records added at run-time for the control. By default, the page size is set to greater than 1. |
|
Extended Information |
Allow or deny a user to access the extended information (that is columns other than the display and value columns of the result set) based on the selection for the control.
|
|
Select First Record |
Allow or deny the system to automatically select the first record when the control is loaded.
Note: |
|
Auto-Select Record |
Allow or deny the system to automatically select the record when the check box is selected and vice versa.
Note: |
|
Summary Columns |
Columns to view in the summary of a Base Form. Note: |
|
Auto-load Grid |
Allow or deny the system to automatically load the control.
Note: |
|
Include in Summary |
Allow or deny a user to view the value in the Summary of a Base Form.
Note: |
|
Use Culture Specific Values |
Enable values of the grid to be stored as culture specific values.
Note: |
Scripts
For information about using scripts, see scripting guidelines for Data Grid control.
For an example on accessing values of a column of a selected row in a Data Grid, see Accessing Values of a Selected Row Through Other Controls
Note:
- The format and culture for date and time value displayed in the control is as per
the current server and not as stored in the database.
- The number values are displayed in the data grid as per the culture, considering
only the decimal separator.
- When the data type is not a string but a number, date, time and so on, the data
type is first converted to string for comparison and then filtered accordingly.
- If the persist column is of DateTime type, then in runtime the grid displays only the seconds. The milliseconds are neither
displayed nor persisted. Filter options such as equal to will not work if milliseconds is persisted in the database for the Date, Time, and DateTime data types.
- If Date type is configured as Database column in SQL server, the Date type is displayed in the DateTime format in the UI.
- While filtering data, it is recommended to enter only valid inputs for Date, Time, and DateTime data types.
- If the Boolean type has Null data in the database and if the Use Culture Specific Values property for the Data Grid is set to Yes, then the Null data for the Boolean type is displayed as False in the UI.
Multiple and Parameterized Data Grids
You can use two data grids, and populate the destination data grid based on the record selected in the source data grid. The destination data grid is also called as the parameterized data grid as it is populated using the parameters from the source data grid.
The behavior of the data grids on data change with the Multiple Selection property is as follows.
|
Value of the Multiple Selection Property set for the Source Data Grid |
Value of the Multiple Selection Property set for the Destination Data Grid |
Behavior of the data grids on data change |
|---|---|---|
|
No |
No |
If you select a record in the source data grid, then the destination data grid is populated and you can select a record in the destination grid. |
|
No |
Yes |
If you select a record in the source data grid, then the destination data grid is populated and you can select a record or multiple records in the destination grid. |
|
Yes |
No |
If you select a record in the source data grid, then the destination data grid is populated and you can select a record in the destination grid. If you select multiple records in the source data grid, then the destination data grid is not updated and results in an invalid scenario. |
|
Yes |
Yes |
If you select a record or multiple records in the source data grid, then the destination data grid is populated and you can select a record or multiple records in the destination grid. |