We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79e2c5c + ed9f225 commit f1aabaaCopy full SHA for f1aabaa
src/Eto.Mac/Forms/Controls/GridHandler.cs
@@ -415,7 +415,7 @@ public bool ShowHeader
415
{
416
if (value && Control.HeaderView == null)
417
418
- Control.HeaderView = headerView = new EtoTableHeaderView { Handler = this };
+ Control.HeaderView = headerView = new EtoTableHeaderView { Handler = this, Menu = ContextMenu.ToNS() };
419
}
420
else if (!value && Control.HeaderView != null)
421
@@ -437,7 +437,8 @@ public virtual ContextMenu ContextMenu
437
438
Widget.Properties.Set(GridHandler.ContextMenu_Key, value);
439
Control.Menu = value.ToNS();
440
- Control.HeaderView.Menu = value.ToNS();
+ if (Control.HeaderView != null)
441
+ Control.HeaderView.Menu = value.ToNS();
442
443
444
0 commit comments