menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridModel - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridModel

    Represents a wrapper class for a SfDataGrid control handling the collection and view related operations.

    Inheritance
    System.Object
    DataGridModel
    Implements
    System.IDisposable
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridModel : Object, IDisposable
    Remarks

    DataGridModel listens to the collection changes in a SfDataGrid control and responds to them. It updates the View in response to the collection changes.

    Constructors

    DataGridModel(SfDataGrid)

    Initializes a new instance of the DataGridModel class using the specified SfDataGrid object.

    Declaration
    public DataGridModel(SfDataGrid grid)
    Parameters
    Type Name Description
    SfDataGrid grid

    The reference of the SfDataGrid.

    Methods

    CollapseGroup(Group)

    Collapses the specified group in SfDataGrid.

    Declaration
    public bool CollapseGroup(Group group)
    Parameters
    Type Name Description
    Group group
    Returns
    Type
    System.Boolean

    Dispose()

    Perform final clean up before it is released from memory.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Releases the unmanaged resources used by the component and optionally releases the managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    if true - release both managed and unmanaged resources; if false - release only unmanaged resources.

    ExpandGroup(Group)

    Expands the specified group in SfDataGrid.

    Declaration
    public bool ExpandGroup(Group group)
    Parameters
    Type Name Description
    Group group
    Returns
    Type
    System.Boolean

    MakeSort(DataGridColumn)

    ToDo

    Declaration
    public void MakeSort(DataGridColumn gridColumn)
    Parameters
    Type Name Description
    DataGridColumn gridColumn

    RefreshDataRow()

    Refreshes the Syncfusion.Maui.DataGrid.DataRow objects in the view.

    Declaration
    public void RefreshDataRow()

    RefreshView()

    Refreshes the view.

    Declaration
    public void RefreshView()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved