--- title: "Using a Validation Rule in a Data Grid" slug: "using-a-validation-rule-in-a-data-grid" updated: 2021-03-12T15:05:35Z published: 2021-03-12T15:07:29Z canonical: "documentation.decisions.com/using-a-validation-rule-in-a-data-grid" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Using a Validation Rule in a Data Grid Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.12.1 | | **Root Folder** | Example Lab - Validation Rule Inside a Data Grid | | **Modules** | None | | **Dependencies** | None | This Example Lab demonstrates using Validation Rules on a Data Grid. --- ## Explanation The main Flow of this Example shows a Form to the user, which allows them to add input values to a Data Grid. A new value is entered when the "Add New Value" button is selected; if the value is valid then the value will be added to the list and the Form will reload. Edit the Form in the project attachment below and navigate to the Validation Rules section of the Properties tab. Edit the "Check Value Rule" to see what will qualify as a valid entry against the Rule. For this example, numbers 1-4 are valid entries, and any other value will cause an error to occur in an attempt to add it to the Data Grid. This Rule can be altered to change what the Data Grid will allow as a valid entry. Reference Articles[Validating Form Data](https://documentation.decisions.com/docs/validating-form-data) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1602518037334.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[ValidationRuleInsideADataGrid].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BValidationRuleInsideADataGrid%5D.zip) ---