|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagrid - right click select and context menuI have a context menu for a datagrid that shows up fine. I am wanting
to set it to where when a user right clicks anywhere on the grid, it will select the row the mouse is over (if it's over one), and then display the context menu. Any help is appreciated. thanks skOOb33 wrote:
> I have a context menu for a datagrid that shows up fine. I am wanting You will need to use the HitTestInfo class to determine if the DataGrid > to set it to where when a user right clicks anywhere on the grid, it > will select the row the mouse is over (if it's over one), and then > display the context menu. Any help is appreciated. > > thanks > is over a cell. If it is then you will use the DataGrid.Select command to select the row you want. Just run those calls before you open your context menu. Chris
Listview size
Enumerator vs ForNext vs ForEach Is there anyway to tell when code is executing at compile time? Working between forms How to pass class as parameter? Exception handling problem Retrieving Child Rows currentDomain.UnhandledException animation in menubar like in IE Async Delegate question |
|||||||||||||||||||||||