SourceGrid.Grid.InsertCell C# (CSharp) Method

InsertCell() private method

Insert the specified cell (for best performance set Redraw property to false)
private InsertCell ( int row, int col, Cells p_cell ) : void
row int
col int
p_cell Cells
return void
        private void InsertCell(int row, int col, Cells.ICell p_cell)
        {
            RemoveCell(row,col);

            if (p_cell != null && p_cell.Grid != null)
                throw new ArgumentException("This cell already have a linked grid", "p_cell");

            DirectSetCell(new Position(row, col), p_cell);

            if (p_cell != null)
            {
                p_cell.BindToGrid(this,new Position(row, col));
            }
        }