This question is locked. New answers and comments are not allowed.
I have a heirarchical radgridview. Lets say the parent is locations and the child is contacts at that location. I can't seem to figure out which grid has the focus.
I'm binding a viewmodel to a set of command buttons to edit or delete the currently selected item in the grid. When the item is a location I want to bind to the location viewmodel but when the focus is on a contact I want the same buttons to be bound to the contact viewmodel instead. I tried using the row_activated event but that seems to fire only when you double click. I thought about the SelectionChanged event but it seems that when I switch from the child grid to the parent grid the selectionchanged event is not firing. Could you provide an example of how I could achieve somthing like this?
I'm binding a viewmodel to a set of command buttons to edit or delete the currently selected item in the grid. When the item is a location I want to bind to the location viewmodel but when the focus is on a contact I want the same buttons to be bound to the contact viewmodel instead. I tried using the row_activated event but that seems to fire only when you double click. I thought about the SelectionChanged event but it seems that when I switch from the child grid to the parent grid the selectionchanged event is not firing. Could you provide an example of how I could achieve somthing like this?