Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
With the use of ultratoolbarsmanager popupmenu
posted

Hi,

I do not know where to post this, either in win grid or the tool bars option.

Anyway, I have a grid  that has 5 rows. If i select(left click) the second row, the active row would be "1" - which is right. but with the implementation of a popupmenutoolbar, if i right click on the 5th row, the fifth row gets highlighted but the active row is still 1. So I wanna know if it's possible to get the index of the highlighted row instead of the active row.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    The ActiveRow in the grid does not change on a right-click of a cell, nor does it get selected. The ActiveRow will change if you right-click on the RowSelector, though.

    So if the row is getting highlighted when you right-click on it, something in your code must already be identifying this row and selecting it. So the same code probably just needs to be updated to make the row active as well as selected.

    My first choice to do something like this would be in the MouseDown event of the grid, so that's the first place I would look.

    Also, this article might help:

    HOWTO:UltraWinGrid Mouse Position and Row Identification

Children