Class GridDataTableCollectionViewWrapper
Inheritance
System.Object
GridDataTableCollectionViewWrapper
Implements
System.ComponentModel.ICollectionView
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.ComponentModel.IEditableCollectionView
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridDataTableCollectionViewWrapper : DataTableCollectionView, ICollectionViewAdv, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, ISupportIncrementalLoading, IUnboundExpressionFunc, IGridViewNotifier
Constructors
GridDataTableCollectionViewWrapper(IEnumerable, SfDataGrid)
Declaration
public GridDataTableCollectionViewWrapper(IEnumerable source, SfDataGrid grid)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | |
SfDataGrid | grid |
Fields
datagrid
Declaration
protected SfDataGrid datagrid
Field Value
Type |
---|
SfDataGrid |
Methods
AttachGridView(Object)
Declaration
public override void AttachGridView(object dataGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataGrid |
Overrides
CanUpdateSummary(ISummaryRow, String)
Declaration
protected override bool CanUpdateSummary(ISummaryRow row, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
ISummaryRow | row | |
System.String | propertyName |
Returns
Type |
---|
System.Boolean |
Overrides
CreateItemPropertiesProvider()
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type |
---|
ItemPropertiesProvider |
Overrides
CreateRecords()
Declaration
protected override RecordsList CreateRecords()
Returns
Type |
---|
RecordsList |
Overrides
CreateTopLevelGroup()
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type |
---|
TopLevelGroup |
Overrides
DetachGridView()
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()
Declaration
public override object GetDataGrid()
Returns
Type |
---|
System.Object |
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
GetSelectedRecords()
Gets the selected records from SfDataGrid to calculate the selected records summaries.
Declaration
public override ObservableCollection<object> GetSelectedRecords()
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Object> | Returns the selected items collection |
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. |
Overrides
Implements
System.ComponentModel.ICollectionView
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.ComponentModel.IEditableCollectionView