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

RaiseCellKeyDown() protected method

Raises a KeyDown event for the Cell at the specified cell position
protected RaiseCellKeyDown ( CellPos cellPos, KeyEventArgs e ) : void
cellPos CellPos The position of the Cell
e KeyEventArgs A KeyEventArgs that contains the event data
return void
        protected void RaiseCellKeyDown(CellPos cellPos, KeyEventArgs e)
        {
            if (!this.IsValidCell(cellPos))
            {
                return;
            }

            if (!this.TableModel[cellPos].Enabled)
            {
                return;
            }

            if (this.ColumnModel.GetCellRenderer(cellPos.Column) != null)
            {
                Cell cell = null;

                if (cellPos.Column < this.TableModel.Rows[cellPos.Row].Cells.Count)
                {
                    cell = this.TableModel.Rows[cellPos.Row].Cells[cellPos.Column];
                }

                CellKeyEventArgs ckea = new CellKeyEventArgs(cell, this, cellPos, this.CellRect(cellPos.Row, cellPos.Column), e);

                this.OnCellKeyDown(ckea);
            }
        }
Table