Class GridLayout
Arrange the items in a Grid structure with the specified number of columns. It supports both vertical and horizontal orientation.
Inherited Members
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public class GridLayout : ListViewLayout
Remarks
It supports all functionalities (E.g., Grouping, Sorting, Filtering, Swiping, Real-time updates, etc.) like LinearLayout.
Constructors
GridLayout()
Initializes a new instance of the GridLayout class.
Declaration
public GridLayout()
Fields
SpanCountProperty
Identifies the SpanCount bindable property.
Declaration
public static readonly BindableProperty SpanCountProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
This bindable property is read-only.
Properties
SpanCount
Gets or sets the span count for GridLayout. That is, number of items to be displayed in a row. For horizontal orientation, it specifies the number of items in a column.
Declaration
public int SpanCount { get; set; }
Property Value
Type |
---|
System.Int32 |
Examples
SfListView listView = new SfListView();
listView.ItemsLayout = new GridLayout() { SpanCount = 2 };