SourceGrid.Grid.SetCell C# (CSharp) Method

SetCell() public method

Set the specified cell int he specified position. Abstract method of the GridVirtual control
public SetCell ( int p_iRow, int p_iCol, Cells p_Cell ) : void
p_iRow int
p_iCol int
p_Cell Cells
return void
        public virtual void SetCell(int p_iRow, int p_iCol, Cells.ICellVirtual p_Cell)
        {
            if (p_Cell is Cells.ICell)
                InsertCell(p_iRow, p_iCol, (Cells.ICell)p_Cell);
            else if (p_Cell == null)
                InsertCell(p_iRow, p_iCol, null);
            else
                throw new SourceGridException("Expected ICell class");
        }

Same methods

Grid::SetCell ( Position p_Position, Cells p_Cell ) : void