Class DataGridModel
Represents a wrapper class for a SfDataGrid control handling the collection and view related operations.
Inheritance
Implements
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()