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
ultraToolBarsManager PopUpMenu code that grabs the highlighted row of a grid
posted
demigod1 posted on Fri, Jan 15 2010 12:19 PM
PoorPoorFairFairAverageAverageGoodGoodExcellentExcellent

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.

 

-- Mike Answers:

Infragistics] Mike Saltzman replied on Tue, Jan 19

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.  -- (which is true if the ultratoolbarsmanager is not implemented)

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.  --- thus now this is the question for you guys

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.

Parents
No Data
Reply
  • 485
    posted

    Found the answer to be something to do with inhouse code. My fault... Please disregard the above post

Children
No Data