I want to implement my custom logic when user click on header.(i need select multiple rows accross different bands on CTRL and click action)
I have not found the correspondig event.
I found OnDoubleClickHeader, but it is not going for me.
ultraGrid1.DisplayLayout.Override.HeaderClickAction does not contain a necessary ability too(
Thanks in advance.
Thanks. I have found the example describing this technique. I use piice of code like this:
// Get the UIElement UIElement objUIElement = DisplayLayout.UIElement.ElementFromPoint(e.Location); if (objUIElement == null) return; // See if we are over a header SelectedHeader = (ColumnHeader)objUIElement.GetContext(typeof(ColumnHeader)); if (selectedHeader != null){...}
What you would have to do is trap the MouseUp event of the grid and use UIElements to determine which header was clicked. You do this using the ElementFromPoint method. Do a search in the Infragistics Knowledge Base for ElementFromPoint and there are lots of articles and examples on this technique.