Xceed DataGrid for WPF v7.2 Documentation
SetItem Method (CellCollection)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > CellCollection Class : SetItem Method
The zero-based index of the cell to replace.
The new cell that will replace the existing cell at the specified index.
Replaces an existing cell with the specified item.
Syntax
'Declaration
 
Protected Overrides Sub SetItem( _

   ByVal index As Integer, _

   ByVal item As Cell _

) 
'Usage
 
Dim instance As CellCollection

Dim index As Integer

Dim item As Cell

 

instance.SetItem(index, item)
protected override void SetItem( 

   int index,

   Cell item

)

Parameters

index
The zero-based index of the cell to replace.
item
The new cell that will replace the existing cell at the specified index.
Exceptions
ExceptionDescription
An attempt was made to replace a cell when the row is contained by a DataGridControl.
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 SetItem

Methods

InsertItem Method