menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class GridDataTableCollectionViewWrapper

    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.AutoExpandGroups
    CollectionViewAdv.BeginInit(Boolean)
    CollectionViewAdv.CanAddNew
    CollectionViewAdv.CanCancelEdit
    CollectionViewAdv.CancelEdit()
    CollectionViewAdv.CanFilter
    CollectionViewAdv.CanGroup
    CollectionViewAdv.CanListenNotifiers
    CollectionViewAdv.CanRemove
    CollectionViewAdv.CanSort
    CollectionViewAdv.CaptionSummaryRow
    CollectionViewAdv.Clear()
    CollectionViewAdv.CollectionChanged
    CollectionViewAdv.Contains(Object)
    CollectionViewAdv.CopyTo(Object[], Int32)
    CollectionViewAdv.Count
    CollectionViewAdv.CreateRecordEntry(Object)
    CollectionViewAdv.Culture
    CollectionViewAdv.CurrentAddItem
    CollectionViewAdv.CurrentChanged
    CollectionViewAdv.CurrentChanging
    CollectionViewAdv.CurrentEditItem
    CollectionViewAdv.currentItem
    CollectionViewAdv.CurrentItem
    CollectionViewAdv.currentPosition
    CollectionViewAdv.CurrentPosition
    CollectionViewAdv.DeferRefresh()
    CollectionViewAdv.DeferRefresh(Boolean)
    CollectionViewAdv.Dispose()
    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.GetDisplayValueExpressionFunc(String, DataOperation)
    CollectionViewAdv.GetDisplayValueFunc(String, DataOperation)
    CollectionViewAdv.GetEnumerator()
    CollectionViewAdv.GetExpressionFunc(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()
    DataTableCollectionView.AddNew()
    DataTableCollectionView.CancelNew()
    DataTableCollectionView.CommitEdit()
    DataTableCollectionView.CommitNew()
    DataTableCollectionView.FilterRecord(Object)
    DataTableCollectionView.GetGroupResult(String[])
    DataTableCollectionView.GetSource()
    DataTableCollectionView.OnSortDescriptionChanged(NotifyCollectionChangedEventArgs)
    DataTableCollectionView.RefreshSort()
    DataTableCollectionView.RefreshSortingOrderWithFiltersForBottomLevel(List<Group>, String, Int32)
    DataTableCollectionView.ResetFilter()
    DataTableCollectionView.RowFilter
    DataTableCollectionView.SetSource(IEnumerable)
    DataTableCollectionView.SourceListChanged(Object, ListChangedEventArgs)
    DataTableCollectionView.UpdateCollectionView(Object, NotifyCollectionChangedEventArgs)
    DataTableCollectionView.ViewSource
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class GridDataTableCollectionViewWrapper : DataTableCollectionView, ICollectionViewAdv, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportInitialize, IDisposable, IPropertyChangedEventHandler, IEditableCollectionView, ISupportIncrementalLoading, IUnboundExpressionFunc, IGridViewNotifier

    Constructors

    GridDataTableCollectionViewWrapper(IEnumerable, SfDataGrid)

    Initializes a new instance of the GridDataTableCollectionViewWrapper class.

    Declaration
    public GridDataTableCollectionViewWrapper(IEnumerable source, SfDataGrid grid)
    Parameters
    Type Name Description
    System.Collections.IEnumerable source

    The source collection.

    SfDataGrid grid

    Instance of datagrid.

    Fields

    datagrid

    Instance of datagrid.

    Declaration
    protected SfDataGrid datagrid
    Field Value
    Type
    SfDataGrid

    Methods

    AttachGridView(Object)

    Sets grid in the view.

    Declaration
    public override void AttachGridView(object dataGrid)
    Parameters
    Type Name Description
    System.Object dataGrid

    The reference of the SfDataGrid.

    Overrides
    CollectionViewAdv.AttachGridView(Object)

    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
    CollectionViewAdv.CanUpdateSummary(ISummaryRow, String)

    CreateItemPropertiesProvider()

    Creates the ItemPropertiesProvider, to get or set value on the underlying object of the collection view.

    Declaration
    protected override ItemPropertiesProvider CreateItemPropertiesProvider()
    Returns
    Type Description
    ItemPropertiesProvider

    Returns the newly created ItemPropertiesProvider.

    Overrides
    CollectionViewAdv.CreateItemPropertiesProvider()

    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
    DataTableCollectionView.CreateRecords()

    CreateTopLevelGroup()

    Creates a top-level group.

    Declaration
    protected override TopLevelGroup CreateTopLevelGroup()
    Returns
    Type Description
    TopLevelGroup

    The top-level group created.

    Overrides
    CollectionViewAdv.CreateTopLevelGroup()

    DetachGridView()

    Disposes the datagrid in the view.

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

    Dispose(Boolean)

    Disposes all the resources used by the GridDataTableCollectionViewWrapper 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
    CollectionViewAdv.Dispose(Boolean)

    GetDataGrid()

    Gets the dataGrid present in the view.

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

    Returns the datagrid present in the view.

    Overrides
    CollectionViewAdv.GetDataGrid()

    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, DataReflectionMode reflectionMode)
    Parameters
    Type Name Description
    System.String propertyName

    The mapping name of the column.

    DataOperation operation

    The data operation that is being performed.

    DataReflectionMode reflectionMode

    The reflection mode for the operation.

    Returns
    Type Description
    System.Func<System.String, System.Object, System.Object>

    Returns the Func for the given data operation.

    Overrides
    CollectionViewAdv.GetFunc(String, DataOperation, DataReflectionMode)

    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
    DataTableCollectionView.RefreshFilter(Boolean)

    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