Version

Limiting the Amount of Displayed Cards

You can specify how many Cards show on WinGrid™ at any given time. You can configure the maximum amount of Cards to show horizontally and vertically by setting the MaxCardAreaCols and MaxCardAreaRows properties off the CardSettings object, respectively.

Note
Note

Keep in mind that if you want to reset the MaxCardAreaCols and MaxCardAreaRows properties, you can set their values to 0.

The following code below is used to allow only one card to show in WinGrid at all times:

limit the amount of displayed card in ultragrid's card view

In Visual Basic:

Me.UltraGrid1.DisplayLayout.Bands(0).CardSettings.MaxCardAreaCols = 1
Me.UltraGrid1.DisplayLayout.Bands(0).CardSettings.MaxCardAreaRows = 1

In C#:

this.ultraGrid1.DisplayLayout.Bands[0].CardSettings.MaxCardAreaCols = 1;
this.ultraGrid1.DisplayLayout.Bands[0].CardSettings.MaxCardAreaRows = 1;