Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
How to restrict the number of new rows
posted

Hi,

I want to restrict that the grid user cannot add more than 20 rows.

Thanks.

  • 2070
    posted

     Hi,

     

    One thing you can do is hook into BeforeRowInsert event of the grid and cancel it when the limit is reached. Ofcourse you'll have to keep track of how many rows the user has added so far. There's also a MaxRows property on the band which restricts total number of rows in that band - the user will not be allowed to enter any more rows once MaxRows is reached.

     

    Sandip