Class GridDataTableCollectionViewWrapper
Represents the class that maintains the collection view of type data table collection view, when the SfDataGrid is bind to the data table collection view.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.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 collection. |
SfDataGrid | grid | Instance of datagrid. |
Fields
datagrid
Instance of datagrid.
Declaration
protected SfDataGrid datagrid
Field Value
Type |
---|
SfDataGrid |
Methods
AttachGridView(Object)
Sets grid in the view.
Declaration
public override void AttachGridView(object dataGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataGrid | The reference of the SfDataGrid. |
Overrides
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 the ItemPropertiesProvider, to get or set value on the underlying object of the collection view.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | Returns the newly created ItemPropertiesProvider. |
Overrides
CreateRecords()
Creates the records for the items in the source of the collection view.
Declaration
protected override RecordsList CreateRecords()
Returns
Type | Description |
---|---|
RecordsList | The list of records created for the items in the source of the collection view. |
Overrides
CreateTopLevelGroup()
Creates a top-level group.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type | Description |
---|---|
TopLevelGroup | The top-level group created. |
Overrides
DetachGridView()
Disposes the datagrid in the view.
Declaration
public override void DetachGridView()
Overrides
Dispose(Boolean)
Disposes all the resources used by the GridDataTableCollectionViewWrapper class.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
Overrides
GetDataGrid()
Gets the dataGrid present in the view.
Declaration
public override object GetDataGrid()
Returns
Type | Description |
---|---|
System.Object | Returns the datagrid present in the view. |
Overrides
GetFunc(String, DataOperation, DataReflectionMode)
Gets the Func for corresponding data operation and property name.
Declaration
public override Func<string, object, object> GetFunc(string propertyName, DataOperation operation, DataReflectionMode reflectionMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The mapping name of the column. |
DataOperation | operation | The data operation that is being performed. |
DataReflectionMode | reflectionMode | The reflection mode for the operation. |
Returns
Type | Description |
---|---|
System.Func<System.String, System.Object, System.Object> | Returns the Func for the given data operation. |
Overrides
RefreshFilter(Boolean)
Clear Selection if the selected item is not in View.
Declaration
public override void RefreshFilter(bool isProgrammatic)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isProgrammatic | if View need to clear the selection in SfDataGrid, using View.RowFilter expression; set true. The default value is false. |