Hi,
adding a context menu to the Eto.Forms.TreeGridView
column header you need to know what column header received the mouse click/down event.
Using:
private void OnMouseDown(object sender, MouseEventArgs e)
{
TreeGridCell cell = this.GetCellAt(e.Location);
}
TreeGridCell
(TreeGridCell ) gives you the Column
, ColumnIndex
and Item
as a property. Well it seems to work for the actuall row area, but not on the column header.
@curtisw filed this bug RH-68507 to fix that up.
Kindest
Christian