DataGrid Context Menu
Posted on 2006-06-21
I have a custom datagrid that is being used within an application. My problem is that when the user right clicks a row within the datagrid, and selects an option from the context menu, the active row is still the last active row, not the one that was right clicked on. What I need to do is when someone right clicks on a row, select that row before the context menu pops up. This custom datagrid is also set up for rowselect. The problem is that if I use the mousedown event, after the mouse down event, the textbox within the datagrid's row becomes active, therefore I never get the datagrids doubleclick event. I currently use the mouseup event for the row selecting, but the context menu comes up before the row is selected. What are my options?????