Class GridDataTableCollectionViewWrapper
A class that enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping when a DataTable collection is bound.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridDataTableCollectionViewWrapper : DataTableCollectionView, ICollectionViewAdv, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, ISupportIncrementalLoading, IUnboundExpressionFunc, IGridViewNotifier
Constructors
GridDataTableCollectionViewWrapper(IEnumerable, SfDataGrid)
Initializes a new instance of the GridDataTableCollectionViewWrapper class.
Declaration
public GridDataTableCollectionViewWrapper(IEnumerable source, SfDataGrid grid)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | The source. |
SfDataGrid | grid | The SfDataGrid. |
Fields
datagrid
Gets or sets the instance of the SfDataGrid.
Declaration
protected SfDataGrid datagrid
Field Value
Type |
---|
SfDataGrid |
Methods
CreateItemPropertiesProvider()
Method to create the item properties provider for the GridDataTableCollectionViewWrapper.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | Returns the item properties provider for the GridDataTableCollectionViewWrapper. |
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.Data.VirtualRecordsList when 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.SfDataGrid.GridVirtualizingTopLevelGroup when 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
SetDataGrid(SfDataGrid)
Sets the datagrid present in the view.
Declaration
public void SetDataGrid(SfDataGrid grid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | grid | The reference of the SfDataGrid. |