Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Set a maximum number of rows in Ultra Grid

Set a maximum number of rows in Ultra Grid

New Discussion
Evan Cline
Evan Cline asked on Jan 5, 2017 9:25 AM

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

Sign In to post a reply

Replies

  • 0
    Milko Venkov
    Milko Venkov answered on Jan 5, 2017 9:25 AM

    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.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Evan Cline
Favorites
0
Replies
1
Created On
Jan 05, 2017
Last Post
9 years, 1 month ago

Suggested Discussions

Created by

Created on

Jan 5, 2017 9:25 AM

Last activity on

Feb 23, 2026 5:34 PM