Class GridQueryableCollectionViewWrapper
Represents the wrapper class that implements the QueryableCollectionView to create a queried collection based on which data manipulation is performed.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class GridQueryableCollectionViewWrapper : QueryableCollectionView, ICollectionViewAdv, IEnumerable, INotifyPropertyChanged, ISupportInitialize, ISupportIncrementalLoading, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, INotifyCollectionChanged, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView
Constructors
GridQueryableCollectionViewWrapper(IEnumerable, SfDataGrid)
Initializes a new instance of the GridQueryableCollectionViewWrapper class using the specified source and dataGrid object.
Declaration
public GridQueryableCollectionViewWrapper(IEnumerable source, SfDataGrid grid)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | The item source of the collection. |
SfDataGrid | grid | The reference of the SfDataGrid. |
Methods
CanUpdateSummary(ISummaryRow, String)
Checks whether the property change affects the UpboundCoulmn summary in corresponding SummaryRow.
Declaration
protected override bool CanUpdateSummary(ISummaryRow row, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
ISummaryRow | row | row. |
System.String | propertyName | propertyName. |
Returns
Type | Description |
---|---|
System.Boolean | true if the property change affects UpboundCoulmn summary in corresponding SummaryRow; otherwise false. |
Overrides
CreateItemPropertiesProvider()
Creates a new instance of the Syncfusion.Maui.DataGrid.GridItemPropertiesProvider class.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | A new instance of the Syncfusion.Maui.DataGrid.GridItemPropertiesProvider class. |
Overrides
CreateRecords()
Create records list based on the source provided by view.
Declaration
protected override RecordsList CreateRecords()
Returns
Type | Description |
---|---|
RecordsList | Returns RecordsList. |
Overrides
Remarks
Creates Syncfusion.Maui.Data.VirtualRecordsList when SfDataGrid.EnableDataVirtualization is true.
CreateTopLevelGroup()
Creates TopLevelGroup while grouping for view.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type | Description |
---|---|
TopLevelGroup | Returns TopLevelGroup. |
Overrides
Remarks
Creates Syncfusion.Maui.DataGrid.GridVirtualizingTopLevelGroup when SfDataGrid.EnableDataVirtualization is true.
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
Overrides
GetDataGrid()
Gets the reference of the DataGrid in the view.
Declaration
public override object GetDataGrid()
Returns
Type | Description |
---|---|
System.Object | The reference of the DataGrid in the view. |
Overrides
GetDisplayValueFunc(String, DataOperation)
Returns a function for getting the display value for the given property and data operation.
Declaration
public override Func<string, object, object> GetDisplayValueFunc(string propertyName, DataOperation operation)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name which has changed. |
DataOperation | operation | The DataOperation which indicates the data operations (sorting, grouping, etc) performed in the underlying collection. |
Returns
Type | Description |
---|---|
System.Func<System.String, System.Object, System.Object> | System.Func<, , > for getting the display value for the given property and data operation. |
Overrides
GetExpressionFunc(String, DataOperation, DataReflectionMode)
Returns Expression function for the property, data operation and reflection mode.
Declaration
public override Expression<Func<string, object, object>> GetExpressionFunc(string propertyName, DataOperation operation, DataReflectionMode reflectionMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name which has changed. |
DataOperation | operation | The DataOperation which indicates the data operations (sorting, grouping, etc) performed in the underlying collection. |
DataReflectionMode | reflectionMode | The DataReflectionMode which indicates the mode of data change specifying either in display mode, value mode or mapping name. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>> | Expression System.Func<, , > for the given property, data operation and the reflection mode. |
Overrides
GetFunc(String, DataOperation, DataReflectionMode)
Returns System.Func<, , > for the given property, data operation and the reflection mode.
Declaration
public override Func<string, object, object> GetFunc(string propertyName, DataOperation operation, DataReflectionMode reflectionMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name which has changed. |
DataOperation | operation | The DataOperation which indicates the data operations (sorting, grouping, etc) performed in the underlying collection. |
DataReflectionMode | reflectionMode | The DataReflectionMode which indicates the mode of data change specifying either in display mode, value mode or mapping name. |
Returns
Type | Description |
---|---|
System.Func<System.String, System.Object, System.Object> | System.Func<, , > for the given property, data operation and the reflection mode. |