XPTable.Models.Table.OnCellClick C# (CSharp) Method

OnCellClick() protected method

Raises the CellClick event
protected OnCellClick ( CellMouseEventArgs e ) : void
e CellMouseEventArgs A CellEventArgs that contains the event data
return void
        protected virtual void OnCellClick(CellMouseEventArgs e)
        {
            if (!this.IsCellEnabled(e.CellPos))
                return;

            if (this.CanRaiseEvents)
            {
                ICellRenderer renderer = this.ColumnModel.GetCellRenderer(this.LastMouseCell.Column);

                if (renderer != null)
                    renderer.OnClick(e);

                if (CellClick != null)
                    CellClick(e.Cell, e);
            }
        }
Table