Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / CellCollection Class / RemoveItem Method
The zero-based index of the cell to remove.


In This Topic
    RemoveItem Method (CellCollection)
    In This Topic
    Removes the cell at the specified index.
    Syntax
    'Declaration
     
    Protected Overrides Sub RemoveItem( _
       ByVal index As Integer _
    ) 
    'Usage
     
    Dim instance As CellCollection
    Dim index As Integer
     
    instance.RemoveItem(index)
    protected override void RemoveItem( 
       int index
    )

    Parameters

    index
    The zero-based index of the cell to remove.
    Exceptions
    ExceptionDescription
    An attempt was made to remove a cell when the row is contained by a DataGridControl.
    index is less than zero or equal to or greater than count.
    Remarks
    This method will raise the CollectionChanged event.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also

    Reference

    CellCollection Class
    CellCollection Members
    Base Implementation in RemoveItem

    Methods

    InsertItem Method