Class QueryableCollectionViewWrapper
Represents the class that used to create the view for SfDataGrid with the query able collection.
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Data
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class QueryableCollectionViewWrapper : QueryableCollectionView, ICollectionViewAdv, IEnumerable, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView
Constructors
QueryableCollectionViewWrapper(IEnumerable, SfDataGrid)
Initializes a new instance of the QueryableCollectionViewWrapper class. class.
Declaration
public QueryableCollectionViewWrapper(IEnumerable source, SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | The System.Collections.IEnumerable object that need to be set as source for the data grid. |
SfDataGrid | dataGrid | The SfDataGrid that need to be set with the |
Methods
AttachGridView(Object)
Attached the grid to the property access provider.
Declaration
public override void AttachGridView(object grid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | grid | The grid. |
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 | A ISummaryRow value. |
System.String | propertyName | A string vlue contains the property name. |
Returns
Type | Description |
---|---|
System.Boolean | true if the property change affects UpboundCoulmn summary in corresponding SummaryRow; otherwise false |
Overrides
CreateItemPropertiesProvider()
Overridden to create the DataGridItemsPropertiesProvider for the grid.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | Returns the collection of property descriptor. |
Overrides
CreateRecords()
Overridden to creates the records based on the item source of the data grid.
Declaration
protected override RecordsList CreateRecords()
Returns
Type | Description |
---|---|
RecordsList | Returns the |
Overrides
CreateTopLevelGroup()
Creates a top-level group for the datagrid.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type | Description |
---|---|
TopLevelGroup | Returns the top-level group. |
Overrides
DetachGridView()
Clears the grid while Disposing the QueryableCollectionViewWrapper.
Declaration
public override void DetachGridView()
Overrides
Dispose(Boolean)
Disposes all the resources used by the QueryableCollectionViewWrapper class.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates the call is from Dispose method. |
Overrides
GetDataGrid()
Gets the grid that is attached to the collection wrapper.
Declaration
public override object GetDataGrid()
Returns
Type | Description |
---|---|
System.Object | The System.Object. |
Overrides
GetExpressionFunc(String, DataOperation, DataReflectionMode)
Gets the Expression Function for corresponding Data operation and Property Name.
Declaration
public override Expression<Func<string, object, object>> GetExpressionFunc(string propertyName, DataOperation operation = DataOperation.Default, DataReflectionMode reflectionMode = DataReflectionMode.Value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property. |
DataOperation | operation | The DataOperation that need to be performed. |
DataReflectionMode | reflectionMode | Specifies the DataReflectionMode. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>> | Returns the expression. |
Overrides
GetFunc(String, DataOperation, DataReflectionMode)
Returns func for corresponding Data operation and Property Name.
Declaration
public override Func<string, object, object> GetFunc(string propertyName, DataOperation operation = DataOperation.Default, DataReflectionMode reflectionMode = DataReflectionMode.Value)
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> | 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
RemoveRecord(Object)
Overridden to remove the given object from the record list.
Declaration
protected override void RemoveRecord(object record)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | Record to remove. |