Class GridPagedCollectionViewWrapper
Represents the wrapper class that implements the PagedCollectionView to create a QueryableCollectionView based on which data manipulation is performed.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class GridPagedCollectionViewWrapper : PagedCollectionView, ICollectionViewAdv, IEnumerable, INotifyPropertyChanged, ISupportInitialize, ISupportIncrementalLoading, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, INotifyCollectionChanged, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView
Constructors
GridPagedCollectionViewWrapper()
Initializes a new instance of the GridPagedCollectionViewWrapper class.
Declaration
public GridPagedCollectionViewWrapper()
GridPagedCollectionViewWrapper(IEnumerable)
Initializes a new instance of the GridPagedCollectionViewWrapper class using the specified source.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GridPagedCollectionViewWrapper method is not trim compatible")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "The GridPagedCollectionViewWrapper method relies on dynamic code generation")]
public GridPagedCollectionViewWrapper(IEnumerable sender)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | sender | The Enumerable collection. |
Methods
CreateItemPropertiesProvider()
Creates ItemPropertiesProvider based on the bound data source.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The GridItemPropertiesProvider is not trim compatible")]
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
| Type | Description |
|---|---|
| ItemPropertiesProvider | Returns the collection of property descriptor. |
Overrides
CreateRecords()
Create records list based on the source provided by view.
Declaration
protected override RecordsList CreateRecords()
Returns
| Type | Description |
|---|---|
| RecordsList | Returns RecordsList. |
Overrides
CreateTopLevelGroup()
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
| Type |
|---|
| TopLevelGroup |
Overrides
GetDataGrid()
Gets the SfDataGrid present in the view.
Declaration
public override object GetDataGrid()
Returns
| Type | Description |
|---|---|
| object | The reference of the SfDataGrid present in the view. |
Overrides
GetExpressionFunc(string, DataOperation, DataReflectionMode)
Return ExpressionFunc for corresponding Dataoperation and Property Name.
Declaration
public override Expression<Func<string, object, object>>? GetExpressionFunc(string propertyName, DataOperation operation = DataOperation.Default, DataReflectionMode reflectionMode = DataReflectionMode.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | |
| DataOperation | operation | |
| DataReflectionMode | reflectionMode |
Returns
| Type |
|---|
| Expression<Func<string, object, object>> |
Overrides
GetFunc(string, DataOperation, DataReflectionMode)
Return func for corresponding Dataoperation and Property Name.
Declaration
public override Func<string, object, object?>? GetFunc(string propertyName, DataOperation operation = DataOperation.Default, DataReflectionMode reflectionMode = DataReflectionMode.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | |
| DataOperation | operation | |
| DataReflectionMode | reflectionMode |
Returns
| Type |
|---|
| Func<string, object, object> |
Overrides
MoveToPage(int)
Moves to the given page index. This method can be used to move to the desired page.
Declaration
public override bool MoveToPage(int pageIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pageIndex | The destination page index to be reached. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value denoting whether the page is moved or not. |
Overrides
SetDataGrid(SfDataGrid)
The reference of the SfDataGrid is updated. When view is reused, need to update the grid.
Declaration
public void SetDataGrid(SfDataGrid grid)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDataGrid | grid | SfDataGrid instance. |