ZForge.Controls.XPTable.Models.Row.OnCellAdded C# (CSharp) Method

OnCellAdded() protected method

Raises the CellAdded event
protected OnCellAdded ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
return void
        protected internal virtual void OnCellAdded(RowEventArgs e)
        {
            e.SetRowIndex(this.Index);

            e.Cell.InternalRow = this;
            e.Cell.InternalIndex = e.CellFromIndex;
            e.Cell.SetSelected(false);

            this.UpdateCellIndicies(e.CellFromIndex);

            if (e.Cell.WordWrap)
            {
                this.WordWrapCellIndex = e.CellFromIndex;
                this.HasWordWrapCell = true;
            }

            if (this.CanRaiseEvents)
            {
                if (this.TableModel != null)
                {
                    this.TableModel.OnCellAdded(e);
                }

                if (CellAdded != null)
                {
                    CellAdded(this, e);
                }
            }
        }