Class GridBindingList<T>
Implementation of the IGridBindingList interface
Inheritance
Implements
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 |
|
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 |
|
Events
ListChanging
Occurs when [list changing].
Declaration
public event GridListChangingEventHandler ListChanging