Show Context Menu on Selection Changed

2 posts, 1 answers
  1. Helen
    Helen avatar
    101 posts
    Member since:
    Nov 2008

    Posted 11 Oct 2012 Link to this post

    I have a scenario where when a user selects a row of a grid, I want to display a context menu giving them 2 options. Is there any way to do this?

    Thanks a bunch

    Helen
  2. Answer
    Helen
    Helen avatar
    101 posts
    Member since:
    Nov 2008

    Posted 12 Oct 2012 Link to this post

    Never mind, figured it out!

    In the grid's Selection_Changed event handler, I simply call

        MyContextMenu.Show(MousePosition);

    Hope this helps someone else :)

    Helne

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top