menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridBindingList<T> - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridBindingList<T>

    Implementation of the IGridBindingList interface

    Inheritance
    System.Object
    GridBindingList<T>
    Implements
    IGridBindingList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Namespace: Syncfusion.Windows.Collections.Generic
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public class GridBindingList<T> : BindingList<T>, IGridBindingList, IBindingList, IList, ICollection, IEnumerable
    Type Parameters
    Name
    T

    Constructors

    GridBindingList()

    Declaration
    public GridBindingList()

    Properties

    RaiseListChangingEvents

    Gets or sets a value indicating whether [raise list changing events].

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

    true if [raise list changing events]; otherwise, false.

    Methods

    ClearItems()

    Removes all elements from the collection.

    Declaration
    protected override void ClearItems()

    InsertItem(Int32, T)

    Inserts the specified item in the list at the specified index.

    Declaration
    protected override void InsertItem(int index, T item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index where the item is to be inserted.

    T item

    The item to insert in the list.

    RemoveItem(Int32)

    Removes the item at the specified index.

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to remove.

    Exceptions
    Type Condition
    System.NotSupportedException

    You are removing a newly added item and System.ComponentModel.IBindingList.AllowRemove is set to false.

    SetItem(Int32, T)

    Replaces the item at the specified index with the specified item.

    Declaration
    protected override void SetItem(int index, T item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to replace.

    T item

    The new value for the item at the specified index. The value can be null for reference types.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is less than zero. -or- index is greater than System.Collections.ObjectModel.Collection<T>.Count.

    Events

    ListChanging

    Occurs when [list changing].

    Declaration
    public event GridListChangingEventHandler ListChanging
    Event Type
    Type
    GridListChangingEventHandler

    Implements

    IGridBindingList
    System.ComponentModel.IBindingList
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved