Hi.
Values by clicking a cell, the call "CellClick" does not return the values of X and Y. Just returned a -1.
With this line of code will solve everything:
Table.cs: (line 7467)
/// <summary>
/// Raises the Click event
/// </summary>
/// <param name="e">An EventArgs that contains the event data</param>
protected override void OnClick(EventArgs e)
{
base.OnClick(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);
// ***************** CHANGE ***************************
MouseEventArgs eM = (MouseEventArgs)e;
this.OnCellClick(new CellMouseEventArgs(this.TableModel[realCell], this, realCell, this.CellRect(realCell), eM));
// *********************************************************
}
else if (this.hotColumn != -1)
{
this.OnHeaderClick(new HeaderMouseEventArgs(this.ColumnModel.Columns[this.hotColumn], this, this.hotColumn, this.DisplayRectToClient(this.ColumnModel.ColumnHeaderRect(this.hotColumn))));
}
}
File with patch