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.DataPager
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class GridPagedCollectionViewWrapper : PagedCollectionView, ICollectionViewAdv, IEnumerable, INotifyPropertyChanged, ISupportInitialize, ISupportIncrementalLoading, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, INotifyCollectionChanged, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView, IPagedCollectionView
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
public GridPagedCollectionViewWrapper(IEnumerable sender)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | sender | The System.Linq.Enumerable collection. |
Methods
CreateItemPropertiesProvider()
Creates ItemPropertiesProvider based on the bound data source.
Declaration
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 |
---|---|
System.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, DataReflectionMode reflectionMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
DataOperation | operation | |
DataReflectionMode | reflectionMode |
Returns
Type |
---|
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.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, DataReflectionMode reflectionMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
DataOperation | operation | |
DataReflectionMode | reflectionMode |
Returns
Type |
---|
System.Func<System.String, System.Object, System.Object> |
Overrides
MoveToPage(Int32)
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 |
---|---|---|
System.Int32 | pageIndex | The destination page index to be reached. |
Returns
Type | Description |
---|---|
System.Boolean | 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. |