protected override void OnDoubleClick(EventArgs e)
{
base.OnDoubleClick(e);
if (this.IsValidCell(this.LastMouseCell))
{
// Adjust this to take colspan into account
// LastMouseCell may be a cell that is 'under' a colspan cell
CellPos realCell = this.ResolveColspan(this.LastMouseCell);
this.OnCellDoubleClick(new CellMouseEventArgs(this.TableModel[realCell], this, realCell, this.CellRect(realCell)));
}
else if (this.hotColumn != -1)
{
if (this.TableState == TableState.ColumnResizing)
{
Column column = this.ColumnModel.Columns[this.hotColumn];
this.OnColumnAutoResize(new ColumnEventArgs(column, this.hotColumn, ColumnEventType.WidthChanged, column.Width));
}
else
{
this.OnHeaderDoubleClick(new HeaderMouseEventArgs(this.ColumnModel.Columns[this.hotColumn], this, this.hotColumn, this.DisplayRectToClient(this.ColumnModel.ColumnHeaderRect(this.hotColumn))));
}
}
}