Data-grids and edit-grids are powerful components that enable the responder to dynamically add rows to a table. In certain scenarios, it may be beneficial to restrict the number of rows a user can add. To achieve this, follow these steps:
Open the component settings for your data-grid. This is distinct from the settings for individual components within the data-grid.
Navigate to the validation tab and locate the “maximum length” setting.
Set this value to the desired number of rows you want to limit the data-grid to. This modification will disable the “add another” button once the grid reaches this limit.