Context Menu not appearing on right click after editing combocell

Posted by: steven.wood on 22 August 2019, 5:24 am EST

  • Posted 22 August 2019, 5:24 am EST

    I have a spreadsheet containing combo cells. If I right click on the cell the context menu appears, however, if I left click on the cell, make a selection and then closeup the combo, right clicking on the cell has no effect. Is there a way to resolve this issue?
  • Replied 22 August 2019, 3:03 pm EST


    I'm assuming you're referring to Spread .NET control. Can you please confirm that after making a selection and then closing the combo box the cell's contents are not selected. If the cell's contents are still selected (highlighted) then the cell's editor is still active so the context menu defined on Spread won't appear (which is normal; only the active control can show its context menu).

    If this is not the case, then please mention your Spread version so we can check it against that also.

  • Replied 22 August 2019, 9:12 pm EST

    I am using Spread.NET. I had not appreciated that the cell was still in edit mode.

  • Marked as Answer

    Replied 25 August 2019, 5:43 pm EST


    If you want the context menu to appear after selecting one of the items from the combo box dropdown, then you can explicitly exit out of the edit mode in the handler for ComboCloseUp event:
    private void FpSpread1_ComboCloseUp(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
    fpSpread1.EditMode = false;

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels