alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class GridLayout

    Arrange the items in a Grid structure with the specified number of columns. It supports both vertical and horizontal orientation.

    Inheritance
    object
    ListViewLayout
    GridLayout
    Inherited Members
    ListViewLayout.ItemsCacheLimit
    ListViewLayout.ScrollToRowIndex(int, bool)
    ListViewLayout.ScrollToRowIndex(int, ScrollToPosition, bool)
    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
    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
    int
    Examples
    SfListView listView = new SfListView();
    listView.ItemsLayout = new GridLayout() { SpanCount = 2 };
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved