I need to be able to determine which column the user's mouse was in when they doubleclicked a grid row. How can I do this?
Depending on which event you handle, you might have to get the cirsor position differently, but this is the gist:
Example:UltraGrid control = sender as UltraGrid;UIElement controlElement = control.DisplayLayout.UIElement;UIElement elementAtPoint = controlElement != null ? controlElement.ElementFromPoint( e.Location ) : null;UltraGridColumn column = elementAtPoint.GetContext( typeof(UltraGridColumn) ) as UltraGridColumn;
Is there a way I can get to it from the DoubleClickRow event?