How to disable control/column in a dynamic grid?
Below are the steps to enable\disable controls in a Dynamic Grid based on the users
Step 1: Drag a Dynamic Grid and configure it with three columns, namely A, B, C.
Step 2: Using Text box control, Navigate to the text box control and uncheck the Style → Enable Property.
Step 3: Once after completing the designer part, use the following rule to enable\disable controls in a Dynamic Grid based on the users.
Syntax : GridSetCellStyle(ControlName,PropertyName,RowIndex,CoulmnIndex,Value)
Example Rule : GridSetCellStyle(DGTest,Enable,DGTest.RowIndex,1,true)
Function Explanation:
Rule Name – GridSetCellStyle.
DGTest (ControlName) – Control Name of the Dynamic Grid defined in the designer).
Enable (PropertyName) – To enable the textbox control placed inside Dynamic Grid.
DGTest.RowIndex (RowIndex) – To define the Row
1 (ColumnIndex) – To define the exact column in which the cell style property has to be implemented
True\False (Value) – To define whether the control needs to be enabled or disabled.