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

RaiseCellMouseUp() protected method

Raises a MouseUp event for the Cell at the specified cell position
protected RaiseCellMouseUp ( CellPos cellPos, MouseEventArgs e ) : void
cellPos CellPos The position of the Cell
e MouseEventArgs A MouseEventArgs that contains the event data
return void
        protected void RaiseCellMouseUp(CellPos cellPos, MouseEventArgs 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];
                }

                CellMouseEventArgs mcea = new CellMouseEventArgs(cell, this, cellPos.Row, cellPos.Column, this.CellRect(cellPos.Row, cellPos.Column), e);

                this.OnCellMouseUp(mcea);
            }
        }
Table