Class PagedCollectionViewWrapper
Represents the class that used to create the view for SfDataGrid with the paged collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Data
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class PagedCollectionViewWrapper : PagedCollectionView, ICollectionViewAdv, IEnumerable, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, IUnboundExpressionFunc, IGridViewNotifier, IFilterExt, IParallelizableView, IPagedCollectionView
Constructors
PagedCollectionViewWrapper()
Initializes a new instance of the PagedCollectionViewWrapper class.
Declaration
public PagedCollectionViewWrapper()
PagedCollectionViewWrapper(IEnumerable)
Initializes a new instance of the PagedCollectionViewWrapper class.
Declaration
public PagedCollectionViewWrapper(IEnumerable source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | The IEnumerable source for the collection view. |
Methods
AttachGridView(Object)
Attaches the grid to update the grid, When view is reused.
Declaration
public override void AttachGridView(object dataGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataGrid | The datagrid. |
Overrides
CanUpdateSummary(ISummaryRow, String)
Checks whether the property change affects the UnboundColumn summary in corresponding SummaryRow.
Declaration
protected override bool CanUpdateSummary(ISummaryRow row, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
ISummaryRow | row | The summary row. |
System.String | propertyName | The property name. |
Returns
Type | Description |
---|---|
System.Boolean | true if the property change affects UnboundColumn summary in corresponding SummaryRow; otherwise false |
Overrides
CreateItemPropertiesProvider()
Creates the item properties provider.
Declaration
protected override ItemPropertiesProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
ItemPropertiesProvider | Returns the created item properties provider. |
Overrides
CreateRecords()
Creates the records list for the view.
Declaration
protected override RecordsList CreateRecords()
Returns
Type | Description |
---|---|
RecordsList | Returns the records list for the view. |
Overrides
CreateTopLevelGroup()
Creates the top level group.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()
Returns
Type | Description |
---|---|
TopLevelGroup | Returns the created top level group. |
Overrides
DetachGridView()
Detaches the datagrid attached to the view.
Declaration
public override void DetachGridView()
Overrides
Dispose(Boolean)
Disposes all the resources used by the PagedCollectionViewWrapper 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 attached to the view.
Declaration
public override object GetDataGrid()
Returns
Type | Description |
---|---|
System.Object | Returns the DataGrid attached to the view. |
Overrides
GetExpressionFunc(String, DataOperation, DataReflectionMode)
Gets the ExpressionFunc 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.Default)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property |
DataOperation | operation | Data operation to be prrformed |
DataReflectionMode | reflectionMode | Reflection Mode for the Data operation |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>> | Returns the ExpressionFunc for given Data operation |
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 = DataOperation.Default, DataReflectionMode reflectionMode = DataReflectionMode.Default)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property |
DataOperation | operation | Data operation to be performed |
DataReflectionMode | reflectionMode | Data Reflection mode for the Data 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
MoveToPage(Int32)
Overriden to move to page index.
Declaration
public override bool MoveToPage(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The page index to be moved. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if Page moved. Otherwise false. |
Overrides
RefreshFilter(Boolean)
Refreshes the view when filtering is applied and process the selection for filtering.
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)
Process the selection when removing the records.
Declaration
protected override void RemoveRecord(object record)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The removed record. |