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
40
Set a maximum number of rows in Ultra Grid
posted

Hello all,

I'm looking for a way to set a limit of 25 or 50 lines that can be entered using Ultra Grid.  

Once the limit is reached, I need it to not be able to add a new line.

Thanks for any help,

Evan

  • 21795
    Offline posted

    Hello Evan,

    To limit the number of rows in a particular band in the grid you may set MaxRows property of the band. You can use code like this:

    this.ultraGrid1.DisplayLayout.Bands["Your band key or index"].MaxRows = 20;

    Please let me know if you have any additional questions.