Apply ContextMenu to TreeGridView column header (Eto.Forms)

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.

image

@curtisw filed this bug RH-68507 to fix that up.

Kindest
Christian

Just did the update to the current Rhino pre-release (7.20.22165.13001-rc) and it seems this issue is solved.

GetCellAt

Awesome - so now we will be able to implement a custom contextmenu.

Who ever implemented this (@curtisw???) - thank you very much.

Kindest
Christian