menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class QueryableCollectionView - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class QueryableCollectionView

    Represents the class that maintains the collection view of type queryable collection view, when the SfDataGrid is bind to the queryable collection view.

    Inheritance
    System.Object
    CollectionViewAdv
    QueryableCollectionView
    PagedCollectionView
    VirtualizingCollectionView
    GridQueryableCollectionViewWrapper
    Implements
    ICollectionViewAdv
    Microsoft.UI.Xaml.Data.ICollectionView
    Windows.Foundation.Collections.IObservableVector<System.Object>
    System.Collections.Generic.IList<System.Object>
    System.Collections.Generic.ICollection<System.Object>
    System.Collections.Generic.IEnumerable<System.Object>
    System.Collections.IEnumerable
    System.ComponentModel.INotifyPropertyChanged
    ISupportInitialize
    System.IDisposable
    IEditableCollectionView
    IUnboundExpressionFunc
    IGridViewNotifier
    IFilterPredicateExpression
    IParallelizableView
    Inherited Members
    CollectionViewAdv.Add(Object)
    CollectionViewAdv.AddNew()
    CollectionViewAdv.AddNotifyListener(Object)
    CollectionViewAdv.AdjustBeforeAdd(Object, Int32)
    CollectionViewAdv.AttachGridView(Object)
    CollectionViewAdv.AutoExpandGroups
    CollectionViewAdv.BeginInit(Boolean)
    CollectionViewAdv.CanAddNew
    CollectionViewAdv.CanCancelEdit
    CollectionViewAdv.CancelEdit()
    CollectionViewAdv.CancelNew()
    CollectionViewAdv.CanFilter
    CollectionViewAdv.CanListenNotifiers
    CollectionViewAdv.CanRemove
    CollectionViewAdv.CanUpdateSummary(ISummaryRow, String)
    CollectionViewAdv.CaptionSummaryRow
    CollectionViewAdv.Clear()
    CollectionViewAdv.CollectionChanged
    CollectionViewAdv.CollectionGroups
    CollectionViewAdv.CommitEdit()
    CollectionViewAdv.CommitNew()
    CollectionViewAdv.Contains(Object)
    CollectionViewAdv.CopyTo(Object[], Int32)
    CollectionViewAdv.Count
    CollectionViewAdv.CreateItemPropertiesProvider()
    CollectionViewAdv.CreateRecordEntry(Object)
    CollectionViewAdv.CreateTopLevelGroup()
    CollectionViewAdv.Culture
    CollectionViewAdv.CurrentAddItem
    CollectionViewAdv.CurrentChanged
    CollectionViewAdv.CurrentChanging
    CollectionViewAdv.CurrentEditItem
    CollectionViewAdv.currentItem
    CollectionViewAdv.CurrentItem
    CollectionViewAdv.currentPosition
    CollectionViewAdv.CurrentPosition
    CollectionViewAdv.DeferRefresh()
    CollectionViewAdv.DeferRefresh(Boolean)
    CollectionViewAdv.DetachGridView()
    CollectionViewAdv.Dispose()
    CollectionViewAdv.Dispose(Boolean)
    CollectionViewAdv.editItem
    CollectionViewAdv.EditItem(Object)
    CollectionViewAdv.EnableSummaryOptimization
    CollectionViewAdv.EndEdit()
    CollectionViewAdv.EndInit()
    CollectionViewAdv.EnsureInitialized()
    CollectionViewAdv.EnsureSourceList()
    CollectionViewAdv.EnsureView()
    CollectionViewAdv.FetchSize
    CollectionViewAdv.Filter
    CollectionViewAdv.FilterPredicates
    CollectionViewAdv.GetActiveComparer()
    CollectionViewAdv.GetComparerIndex(Object, Int32)
    CollectionViewAdv.GetDataGrid()
    CollectionViewAdv.GetDisplayValueExpressionFunc(String, DataOperation)
    CollectionViewAdv.GetDisplayValueFunc(String, DataOperation)
    CollectionViewAdv.GetEnumerator()
    CollectionViewAdv.GetExpressionFunc(String, DataOperation, DataReflectionMode)
    CollectionViewAdv.GetFunc(String, DataOperation, DataReflectionMode)
    CollectionViewAdv.GetGroupConverterFunc(String)
    CollectionViewAdv.GetItemAt(Int32)
    CollectionViewAdv.GetItemProperties()
    CollectionViewAdv.GetPropertyAccessProvider()
    CollectionViewAdv.GetRecordAt(Int32)
    CollectionViewAdv.GetSelectedRecords()
    CollectionViewAdv.GetSource()
    CollectionViewAdv.GetSourceListCollection()
    CollectionViewAdv.GroupComparer
    CollectionViewAdv.GroupDescriptions
    CollectionViewAdv.GroupList
    CollectionViewAdv.HasMoreItems
    CollectionViewAdv.IndexOf(Object)
    CollectionViewAdv.InitiateCollectionViewAdv()
    CollectionViewAdv.Insert(Int32, Object)
    CollectionViewAdv.IsAddingNew
    CollectionViewAdv.IsCurrentAfterLast
    CollectionViewAdv.IsCurrentBeforeFirst
    CollectionViewAdv.IsDisposed
    CollectionViewAdv.IsDynamicBound
    CollectionViewAdv.IsEditingItem
    CollectionViewAdv.IsEmpty
    CollectionViewAdv.IsGrouping
    CollectionViewAdv.IsInCommitEdit
    CollectionViewAdv.IsInCommitNew
    CollectionViewAdv.IsInDeferRefresh
    CollectionViewAdv.IsInEndDeferral
    CollectionViewAdv.IsInGroup
    CollectionViewAdv.IsInPropertyChange
    CollectionViewAdv.IsInSourceCollectionChange
    CollectionViewAdv.IsInSuspend
    CollectionViewAdv.IsItemPropertiesTypeSet
    CollectionViewAdv.IsReadOnly
    CollectionViewAdv.IsXElementBound
    CollectionViewAdv.Item[Int32]
    CollectionViewAdv.ItemProperties
    CollectionViewAdv.ItemPropertiesSet
    CollectionViewAdv.LiveDataUpdateMode
    CollectionViewAdv.LoadMoreItemsAsync(UInt32)
    CollectionViewAdv.MoveCurrentTo(Object)
    CollectionViewAdv.MoveCurrentToFirst()
    CollectionViewAdv.MoveCurrentToLast()
    CollectionViewAdv.MoveCurrentToNext()
    CollectionViewAdv.MoveCurrentToPosition(Int32)
    CollectionViewAdv.MoveCurrentToPrevious()
    CollectionViewAdv.NewItemPlaceholderPosition
    CollectionViewAdv.NotificationSubscriptionMode
    CollectionViewAdv.NotifyPropertyChangedHandler(Object, PropertyChangedEventArgs)
    CollectionViewAdv.OnCollectionChanged(NotifyCollectionChangedEventArgs)
    CollectionViewAdv.OnPropertyChanged(Object, PropertyChangedEventArgs)
    CollectionViewAdv.OnRecordCollectionChanged(Object, NotifyCollectionChangedEventArgs)
    CollectionViewAdv.OnRecordPropertyChanged(Object, PropertyChangedEventArgs)
    CollectionViewAdv.OnTopLevelGroupCollectionChanged(Object, NotifyCollectionChangedEventArgs)
    CollectionViewAdv.OnTopLevelGroupPopulated(TopLevelGroup)
    CollectionViewAdv.propertyAccessProvider
    CollectionViewAdv.PropertyChanged
    CollectionViewAdv.RaiseCollectionChangedEvent(NotifyCollectionChangedEventArgs)
    CollectionViewAdv.RaiseCurrentChangedEvent()
    CollectionViewAdv.RaiseCurrentChangingEvent()
    CollectionViewAdv.RaiseExceptionThrownEvent(Exception)
    CollectionViewAdv.RaiseGroupCollectionChanged(NotifyGroupsChangedEventArgs)
    CollectionViewAdv.RaisePropertyChanged(String)
    CollectionViewAdv.RaiseSourceCollectionChangedEvent(NotifyCollectionChangedEventArgs)
    CollectionViewAdv.RecordPropertyChanged
    CollectionViewAdv.Records
    CollectionViewAdv.Refresh()
    CollectionViewAdv.RefreshTopLevelGroup()
    CollectionViewAdv.RefreshView(NotifyCollectionChangedEventArgs)
    CollectionViewAdv.Remove(Object)
    CollectionViewAdv.RemoveAt(Int32)
    CollectionViewAdv.RemoveNotifyListener(Object)
    CollectionViewAdv.RemoveRecord(Object)
    CollectionViewAdv.SetActiveComparer()
    CollectionViewAdv.SetCurrent(Object, Int32)
    CollectionViewAdv.SetCurrent(Object, Int32, Int32)
    CollectionViewAdv.SetFlag(CollectionViewAdv.CollectionViewFlags, Boolean)
    CollectionViewAdv.SetItemProperties(IEnumerable)
    CollectionViewAdv.SetSource(IEnumerable)
    CollectionViewAdv.SetSourceType(Type)
    CollectionViewAdv.SortComparers
    CollectionViewAdv.SortDescriptions
    CollectionViewAdv.SourceCollection
    CollectionViewAdv.SourceCollectionChanged
    CollectionViewAdv.SourceType
    CollectionViewAdv.SummaryCalculationMode
    CollectionViewAdv.SummaryCalculationUnit
    CollectionViewAdv.SummaryRows
    CollectionViewAdv.TableSummaryRows
    CollectionViewAdv.TopLevelGroup
    CollectionViewAdv.TopLevelGroupCollectionChanged
    CollectionViewAdv.UnWireEvents()
    CollectionViewAdv.UpdateCollectionView(Object, NotifyCollectionChangedEventArgs)
    CollectionViewAdv.VectorChanged
    Namespace: Syncfusion.UI.Xaml.Data
    Assembly: Syncfusion.Data.WinUI.dll
    Syntax
    public class QueryableCollectionView : CollectionViewAdv, ICollectionViewAdv, ICollectionView, IObservableVector<object>, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable, INotifyPropertyChanged, ISupportInitialize, IDisposable, IEditableCollectionView, IUnboundExpressionFunc, IGridViewNotifier, IFilterPredicateExpression, IParallelizableView

    Constructors

    QueryableCollectionView()

    Initializes a new instance of the QueryableCollectionView class.

    Declaration
    public QueryableCollectionView()

    QueryableCollectionView(IEnumerable)

    Initializes a new instance of the QueryableCollectionView class.

    Declaration
    public QueryableCollectionView(IEnumerable source)
    Parameters
    Type Name Description
    System.Collections.IEnumerable source

    The IEnumerable source of the collection view.

    QueryableCollectionView(IEnumerable, Type)

    Initializes a new instance of the QueryableCollectionView class.

    Declaration
    public QueryableCollectionView(IEnumerable source, Type sourceType)
    Parameters
    Type Name Description
    System.Collections.IEnumerable source

    The IEnumerable source of the collection view.

    System.Type sourceType

    The source type.

    Properties

    RowFilter

    Gets or sets the predicate for the row filter.

    Declaration
    public Predicate<object> RowFilter { get; set; }
    Property Value
    Type Description
    System.Predicate<System.Object>

    The predicate for the row filter.

    UsePLINQ

    Gets or sets a value indicating whether to use PLINQ.

    Declaration
    public bool UsePLINQ { get; set; }
    Property Value
    Type Description
    System.Boolean

    True if PLINQ is used, otherwise false.

    ViewSource

    Gets the queryable collection for the source of the collection view.

    Declaration
    public IQueryable ViewSource { get; }
    Property Value
    Type Description
    System.Linq.IQueryable

    The queryable collection for the source of the collection view.

    Methods

    CanExecuteParallel(DataOperation)

    Invokes to check whether source is need to execute execute in Parallel Query.

    Declaration
    protected virtual 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

    CreateRecords()

    Creates the records for the items in the ViewSource.

    Declaration
    protected override RecordsList CreateRecords()
    Returns
    Type Description
    RecordsList

    The list of records created for the items in the ViewSource.

    Overrides
    CollectionViewAdv.CreateRecords()

    CreateRowFilterPredicate()

    Creates a row filter predicate, which filters the items to be displayed in the view.

    Declaration
    protected virtual void CreateRowFilterPredicate()

    FilterRecord(Object)

    Returns a boolean value indicating whether to filter underlying data from adding it to View.Records collection.

    Declaration
    public override bool FilterRecord(object record)
    Parameters
    Type Name Description
    System.Object record

    The record to filter.

    Returns
    Type Description
    System.Boolean

    A boolean value indicating whether to filter underlying data from adding it to View.Records collection.

    Overrides
    CollectionViewAdv.FilterRecord(Object)

    GetGroupResult(String[])

    Gets the IEnumerable collection of group result for the array of group-by.

    Declaration
    protected override IEnumerable<GroupResult> GetGroupResult(string[] groupBy)
    Parameters
    Type Name Description
    System.String[] groupBy

    The array of groups

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<GroupResult>

    The IEnumerable collection of group result for the array of group-by.

    Overrides
    CollectionViewAdv.GetGroupResult(String[])

    GetPredicateExpression(IQueryable, out ParameterExpression)

    Gets the predicate expression for the given source and parameter expression.

    Declaration
    public virtual Expression GetPredicateExpression(IQueryable source, out ParameterExpression parameterExpression)
    Parameters
    Type Name Description
    System.Linq.IQueryable source

    The IQueryable source

    System.Linq.Expressions.ParameterExpression parameterExpression

    The parameter expression.

    Returns
    Type Description
    System.Linq.Expressions.Expression

    The predicate expression for the given source and parameter expression.

    GetPredicateExpression(IQueryable, out ParameterExpression, String, Boolean)

    Declaration
    public Expression GetPredicateExpression(IQueryable source, out ParameterExpression parameterExpression, string columnName, bool returncolExpression)
    Parameters
    Type Name Description
    System.Linq.IQueryable source

    The IQueryable source.

    System.Linq.Expressions.ParameterExpression parameterExpression

    The parameter expression.

    System.String columnName

    The column name.

    System.Boolean returncolExpression

    A boolean value indicating whether to return the column expression.

    Returns
    Type Description
    System.Linq.Expressions.Expression

    The predicate expression for the given values.

    GetQueryableSource()

    Returns the IQueryable source of the collection view.

    Declaration
    protected virtual IQueryable GetQueryableSource()
    Returns
    Type Description
    System.Linq.IQueryable

    The IQueryable source of the collection view.

    Remarks

    PagedCollectionView returns paged source as IQueryable. Returning query will be sorted query in the case of normal VirtualizingCollectionView. It will be sorted and filtered query in the case of PagedCollectionVeiw and OnDemand VirtualizingCollectionView.

    OnSortDescriptionChanged(NotifyCollectionChangedEventArgs)

    This method fires when the sort description collection is changed.

    Declaration
    protected override void OnSortDescriptionChanged(NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    The System.Collections.Specialized.NotifyCollectionChangedEventArgs representing the data for the event.

    Overrides
    CollectionViewAdv.OnSortDescriptionChanged(NotifyCollectionChangedEventArgs)

    RefreshFilter(Boolean)

    Refreshes the view when the filtering is applied through FilterRecord(Object) delegate.

    Declaration
    public override void RefreshFilter(bool isProgrammatic = false)
    Parameters
    Type Name Description
    System.Boolean isProgrammatic

    A boolean value indicating whether filtering is done programmatically.

    Overrides
    CollectionViewAdv.RefreshFilter(Boolean)

    RefreshSort()

    Refreshes sorting in the view.

    Declaration
    protected override void RefreshSort()
    Overrides
    CollectionViewAdv.RefreshSort()

    RefreshSortingOrderWithFiltersForBottomLevel(List<Group>)

    Refreshes the sorting order with filters on the records in the bottom-level group.

    Declaration
    protected virtual void RefreshSortingOrderWithFiltersForBottomLevel(List<Group> groups)
    Parameters
    Type Name Description
    System.Collections.Generic.List<Group> groups

    The list of groups in the view.

    ResetFilter()

    Resets the filter of the collection view.

    Declaration
    protected override void ResetFilter()
    Overrides
    CollectionViewAdv.ResetFilter()

    SortQueryable(IQueryable, SortDescriptionCollection)

    Sets the given source and the sort fields as queryable.

    Declaration
    protected virtual IQueryable SortQueryable(IQueryable source, SortDescriptionCollection sortFields = null)
    Parameters
    Type Name Description
    System.Linq.IQueryable source

    The IQueryable source of the items which has to be queried.

    SortDescriptionCollection sortFields

    The sort fields of the source which has to be queried.

    Returns
    Type Description
    System.Linq.IQueryable

    The IQueryable source of the items which is queried.

    Implements

    ICollectionViewAdv
    Microsoft.UI.Xaml.Data.ICollectionView
    Windows.Foundation.Collections.IObservableVector<>
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    System.ComponentModel.INotifyPropertyChanged
    ISupportInitialize
    System.IDisposable
    IEditableCollectionView
    IUnboundExpressionFunc
    IGridViewNotifier
    IFilterPredicateExpression
    IParallelizableView

    Extension Methods

    QueryableCollectionViewExtensions.GetPredicateExpressionExt(CollectionViewAdv, IQueryable, out ParameterExpression)
    QueryableCollectionViewExtensions.GetPredicateExpressionExt(CollectionViewAdv, IQueryable, out ParameterExpression, String, Boolean)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved