WorkflowGen validates the GridView control in two ways:
-
It can force that at least one data row must be entered into the GridView control before allowing the form to be submitted.
-
It can force individual fields within each row to be required.
To enforce that at least one data row is provided you simply need to add the name of the GridView control to the FORM_FIELDS_REQUIRED
action parameter.
Example
Let’s say there is a GridView (GRIDVIEW1
) with three columns containing three textboxes (gvNAME
, gvDATE
, and gvDEPT
)
To ensure that at least one data row in GRIDVIEW1
is provided, set the FORM_FIELDS_REQUIRED
action parameter to include:
GRIDVIEW1
To make sure the gvNAME
and gvDATE
fields are required when adding a new data row in GRIDVIEW1
, set the FORM_FIELDS_REQUIRED
action parameter to include:
GRIDVIEW1.gvNAME, GRIDVIEW1.gvDATE
Note: Make sure to include the GridView name and GridView control name separated by a period.