Class GridPagedCollectionViewWrapper
Inheritance
System.Object
GridPagedCollectionViewWrapper
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 GridPagedCollectionViewWrapper : PagedCollectionView, ICollectionViewAdv, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, ISupportIncrementalLoading, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView, IPagedCollectionView
Constructors
GridPagedCollectionViewWrapper()
Declaration
public GridPagedCollectionViewWrapper()
GridPagedCollectionViewWrapper(IEnumerable)
Declaration
public GridPagedCollectionViewWrapper(IEnumerable sender)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | sender |
Fields
dataGrid
Declaration
protected SfDataGrid dataGrid
Field Value
Type |
---|
SfDataGrid |
Methods
AttachGridView(Object)
When view is reused, need to update the grid
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 GridPagedCollectionViewWrapper 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
GetDisplayValueFunc(String, DataOperation)
Declaration
public override Func<string, object, object> GetDisplayValueFunc(string propertyName, DataOperation operation)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
DataOperation | operation |
Returns
Type |
---|
System.Func<System.String, System.Object, System.Object> |
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 | propertyName |
DataOperation | operation | Data operation |
DataReflectionMode | reflectionMode | Reflection Mode |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>> | ExpressionFunc |
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 | Property Name |
DataOperation | operation | Data operation |
DataReflectionMode | reflectionMode | Data Reflection mode |
Returns
Type | Description |
---|---|
System.Func<System.String, System.Object, System.Object> | Func |
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
MoveToPage(Int32)
Declaration
public override bool MoveToPage(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex |
Returns
Type |
---|
System.Boolean |
Overrides
RaiseExceptionThrownEvent(Exception)
Declaration
protected override void RaiseExceptionThrownEvent(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e |
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
RemoveRecord(Object)
Declaration
protected override void RemoveRecord(object record)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record |
Overrides
Implements
System.ComponentModel.ICollectionView
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.ComponentModel.IEditableCollectionView