RadContextMenu determine where clicked in grid

2 posts, 0 answers
  1. Jim
    Jim avatar
    68 posts
    Member since:
    Apr 2011

    Posted 21 Oct 2011 Link to this post

    I have a radgridview with RadContextMenu
    I have menu items Add Column and Delete column.
    I can get the add column to work OK
    But with delete I don't know how to determine where in the grid the menu was invoked from, i.e. which column to delete.
    Also to consider, what if right clicked on a header item or even the "Click here to add new item"

    Impressed with the RadContextMenu and how easy it was to add columns(custom).

    Regards
    JimL
  2. Jim
    Jim avatar
    68 posts
    Member since:
    Apr 2011

    Posted 25 Oct 2011 Link to this post

    And the answer is ....

    I had some spare moments so I "read the manual" as in the the quote "If all else fails read the manual" !

    RadContextMenu 
     RadContextMenu with a RadGridView
       Display different menu items depending on which part of the RadGridView is clicked

    This pointed me in the right direction and I have solved it.
    Regards
    Jim
Back to Top