Class GridQueryableCollectionViewWrapper
Represents a class that maintains the common functionalities of QueryableCollectionViewWrapper in SfDataGrid.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridQueryableCollectionViewWrapper : QueryableCollectionView, ICollectionViewAdv, ICollectionView, IObservableVector<object>, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView
Constructors
GridQueryableCollectionViewWrapper(IEnumerable, SfDataGrid)
Initializes a new instance of GridQueryableCollectionViewWrapper class.
Declaration
public GridQueryableCollectionViewWrapper(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)
Set dataGrid in view
Declaration
public override void AttachGridView(object grid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | grid | dataGrid |
Overrides
CanExecuteParallel(DataOperation)
Invokes to check whether source is need to execute in Parallel Query.
Declaration
protected override bool CanExecuteParallel(DataOperation operation)
Parameters
Type | Name | Description |
---|---|---|
DataOperation | operation | DataOperation |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if source is execute in parallel query |
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 a item properties provider.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | A item properties provider. |
Overrides
CreateRecords()
Creates a collection of record.
Declaration
protected override RecordsList CreateRecords()
Returns
Type | Description |
---|---|
RecordsList | A collection of record. |
Overrides
CreateTopLevelGroup()
Creates a top level group.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type | Description |
---|---|
TopLevelGroup | A Top level group. |
Overrides
DetachGridView()
Releases all the datagrid in view.
Declaration
public override void DetachGridView()
Overrides
Dispose(Boolean)
Disposes all the resources used by the GridQueryableCollectionViewWrapper 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.
Declaration
public override object GetDataGrid()
Returns
Type | Description |
---|---|
System.Object | The datagrid. |
Overrides
GetDisplayValueFunc(String, DataOperation)
Gets the display value func.
Declaration
public override Func<string, object, object> GetDisplayValueFunc(string propertyName, DataOperation operation)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | |
DataOperation | operation |
Returns
Type | Description |
---|---|
System.Func<System.String, System.Object, System.Object> | The display value func. |
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)
Returns 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
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)
Removes the specified record from the collection.
Declaration
protected override void RemoveRecord(object record)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The specified record. |