menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataTableCollectionView - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataTableCollectionView

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

    Inheritance
    System.Object
    CollectionViewAdv
    DataTableCollectionView
    GridDataTableCollectionViewWrapper
    Implements
    ICollectionViewAdv
    System.Collections.IEnumerable
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    ISupportInitialize
    System.IDisposable
    IPropertyChangedEventHandler
    IEditableCollectionView
    ISupportIncrementalLoading
    IUnboundExpressionFunc
    IGridViewNotifier
    Inherited Members
    CollectionViewAdv.Add(Object)
    CollectionViewAdv.add_CurrentChanging(CurrentChangingEventHandler)
    CollectionViewAdv.AddNotifyListener(Object)
    CollectionViewAdv.AdjustBeforeAdd(Object, Int32)
    CollectionViewAdv.AttachGridView(Object)
    CollectionViewAdv.AutoExpandGroups
    CollectionViewAdv.BeginInit(Boolean)
    CollectionViewAdv.CanAddNew
    CollectionViewAdv.CanCancelEdit
    CollectionViewAdv.CancelEdit()
    CollectionViewAdv.CanFilter
    CollectionViewAdv.CanGroup
    CollectionViewAdv.CanListenNotifiers
    CollectionViewAdv.CanRemove
    CollectionViewAdv.CanSort
    CollectionViewAdv.CanUpdateSummary(ISummaryRow, String)
    CollectionViewAdv.CaptionSummaryRow
    CollectionViewAdv.Clear()
    CollectionViewAdv.CollectionChanged
    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.GetSourceListCollection()
    CollectionViewAdv.GroupComparer
    CollectionViewAdv.GroupDescriptions
    CollectionViewAdv.GroupList
    CollectionViewAdv.Groups
    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.IsIQueryable
    CollectionViewAdv.IsItemPropertiesTypeSet
    CollectionViewAdv.IsLegacyDataTable
    CollectionViewAdv.IsReadOnly
    CollectionViewAdv.IsXElementBound
    CollectionViewAdv.Item[Int32]
    CollectionViewAdv.ItemProperties
    CollectionViewAdv.ItemPropertiesSet
    CollectionViewAdv.KeyValue
    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.remove_CurrentChanging(CurrentChangingEventHandler)
    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.SetSourceType(Type)
    CollectionViewAdv.SortComparers
    CollectionViewAdv.SortDescriptions
    CollectionViewAdv.SourceCollection
    CollectionViewAdv.SourceCollectionChanged
    CollectionViewAdv.SourceType
    CollectionViewAdv.SummaryCalculationMode
    CollectionViewAdv.SummaryRows
    CollectionViewAdv.TableSummaryRows
    CollectionViewAdv.TopLevelGroup
    CollectionViewAdv.TopLevelGroupCollectionChanged
    CollectionViewAdv.UnWireEvents()
    Namespace: Syncfusion.Data
    Assembly: Syncfusion.Data.Portable.dll
    Syntax
    public class DataTableCollectionView : CollectionViewAdv, ICollectionViewAdv, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, ISupportIncrementalLoading, IUnboundExpressionFunc, IGridViewNotifier

    Constructors

    DataTableCollectionView()

    Initializes a new instance of DataTableCollectionView class.

    Declaration
    public DataTableCollectionView()

    DataTableCollectionView(IEnumerable)

    Initializes a new instance of DataTableCollectionView class.

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

    The IEnumerable source for the collection view.

    Properties

    RowFilter

    Gets or sets the expression used to filter which rows are viewed in the DataView.

    Declaration
    public string RowFilter { get; set; }
    Property Value
    Type Description
    System.String

    The expression used to filter which rows are viewed in the DataView.

    ViewSource

    Gets the view source of the collection view.

    Declaration
    public DataView ViewSource { get; }
    Property Value
    Type Description
    System.Data.DataView

    The view source of the collection view.

    Methods

    AddNew()

    Adds a new item to the collection.

    Declaration
    public override object AddNew()
    Returns
    Type Description
    System.Object

    The new item that is added to the collection.

    Overrides
    CollectionViewAdv.AddNew()

    CancelNew()

    Ends the add transaction and discards the pending new item.

    Declaration
    public override void CancelNew()
    Overrides
    CollectionViewAdv.CancelNew()

    CommitEdit()

    Ends the edit transaction and saves the pending changes.

    Declaration
    public override void CommitEdit()
    Overrides
    CollectionViewAdv.CommitEdit()

    CommitNew()

    Ends the add transaction and saves the pending new item.

    Declaration
    public override void CommitNew()
    Overrides
    CollectionViewAdv.CommitNew()

    CreateRecords()

    Creates the records for the items in the source of the collection view.

    Declaration
    protected override RecordsList CreateRecords()
    Returns
    Type Description
    RecordsList

    The list of records created for the items in the source of the collection view.

    Overrides
    CollectionViewAdv.CreateRecords()

    FilterRecord(Object)

    Filters the record for the specified record condition.

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

    The record to filter the data.

    Returns
    Type Description
    System.Boolean

    True if the filter condition is satisfied, otherwise false.

    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[])

    GetSource()

    Gets the source of the collection view.

    Declaration
    protected override IEnumerable GetSource()
    Returns
    Type Description
    System.Collections.IEnumerable

    The source of the collection view.

    Overrides
    CollectionViewAdv.GetSource()

    OnSortDescriptionChanged(NotifyCollectionChangedEventArgs)

    This method fires when the sort description is changed.

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

    The System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains the event data.

    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 the sorting.

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

    RefreshSortingOrderWithFiltersForBottomLevel(List<Group>, String, Int32)

    Refreshes the sorting order with filters for the bottom-level groups.

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

    The list of groups in the bottom level.

    System.String previousFilter

    The previous filter applied.

    System.Int32 level

    The level of the group.

    ResetFilter()

    Refreshes the filtering.

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

    SetSource(IEnumerable)

    Sets the source for the collection view.

    Declaration
    protected override void SetSource(IEnumerable _source)
    Parameters
    Type Name Description
    System.Collections.IEnumerable _source

    The source to be set for the collection view.

    Overrides
    CollectionViewAdv.SetSource(IEnumerable)

    SourceListChanged(Object, ListChangedEventArgs)

    Handles the System.ComponentModel.IBindingList.ListChanged event.

    Declaration
    protected override void SourceListChanged(object sender, ListChangedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The original sender of the event.

    System.ComponentModel.ListChangedEventArgs e

    The System.ComponentModel.ListChangedEventArgs that contains the event data.

    Overrides
    CollectionViewAdv.SourceListChanged(Object, ListChangedEventArgs)

    UpdateCollectionView(Object, NotifyCollectionChangedEventArgs)

    This method fires when the collection is changed.

    Declaration
    protected override void UpdateCollectionView(object sender, NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The original sender of the event.

    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    The System.Collections.Specialized.NotifyCollectionChangedAction which represents the collection changed action.

    Overrides
    CollectionViewAdv.UpdateCollectionView(Object, NotifyCollectionChangedEventArgs)

    Implements

    ICollectionViewAdv
    System.Collections.IEnumerable
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    ISupportInitialize
    System.IDisposable
    IPropertyChangedEventHandler
    IEditableCollectionView
    ISupportIncrementalLoading
    IUnboundExpressionFunc
    IGridViewNotifier

    Extension Methods

    DataTableCollectionViewExt.GetFilterString(CollectionViewAdv)
    DataTableCollectionViewExt.GetFilterString(CollectionViewAdv, String, Boolean)
    DataTableCollectionViewExt.GetClonedSource(CollectionViewAdv)
    QueryableCollectionViewExtensions.GetPredicateExpressionExt(CollectionViewAdv, IQueryable, out ParameterExpression)
    QueryableCollectionViewExtensions.GetPredicateExpressionExt(CollectionViewAdv, IQueryable, out ParameterExpression, String, Boolean)
    CollectionViewExtensions.GetITypedListFunc(CollectionViewAdv, String)
    CollectionViewExtensions.GetITypedListExpressionFunc(CollectionViewAdv, String)
    CollectionViewExtensions.IsITypedListSource(CollectionViewAdv)
    CollectionViewExtensions.ApplyFilters(CollectionViewAdv, ObservableCollection<IFilterDefinition>, String)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved