ComponentOne ASP.NET MVC Controls
MaxRowsOrColumns Method

C1.Web.Mvc.Fluent Namespace > GridLayoutBuilder<TControl,TBuilder> Class : MaxRowsOrColumns Method
The value.
Configurates C1.Web.Mvc.GridLayout.MaxRowsOrColumns. Sets the maximum number of the row count or the column count.
Syntax
'Declaration
 
Public Function MaxRowsOrColumns( _
   ByVal value As Integer _
) As TBuilder
public TBuilder MaxRowsOrColumns( 
   int value
)

Parameters

value
The value.

Return Value

Current builder.
Remarks
Gets or sets the maximum number of the row count or the column count in each group depending on the orientation set for the layout.

When the Orientation for the AutoGridLayout is set to Horizontal, the tiles inside each group are added by expanding the rows until MaxRows is reached after which it adds a new column.

Similarly, when the Orientation for the AutoGridLayout is set to Vertical, the tiles inside the group are added by expanding the columns until MaxCols is reached after which it adds a new row.
See Also

Reference

GridLayoutBuilder<TControl,TBuilder> Class
GridLayoutBuilder<TControl,TBuilder> Members