I currently need to customize the WinGrid so that above certain sections of the header I can add my own custom control. The custom control must be drawn over grouped items just as they are in the image.
I have seen examples in the Infragistics Help Documents where using the different UIElements this was possible however the new objects were always drawn inside the grid.
Is it possible to use the the same methods to create the layout in my example picture? If so what are some of the steps I would have to take?
I don't think that there's going to be any easy way of doing this while getting it to appear within the borders of the grid. If you don't care about it being within the contents of the grid, you could simply place a panel above the grid and sync the widths of the control areas to the widths of the various columns (i.e. by listening to the AfterColPosChanged event). I'm not sure that using a creation filter would work properly with this due to all the scrolling/placement logic, but it may be worth a try; if so, you'll find the UIElementViewer handy.
-Matt
Is it possible to get the XY coordinates for the position of the column?
You might be able to walk down the UIElement chain of the grid (grid.DisplayLayout.UIElement), checking the descendents until you find the column's header UIElement, but I'm not really sure that there's an otherwise easy way to do this. You could also use a Creation/DrawFilter to fire for the particular elements that you need, if only so that you can access the location/size of these elements for use outside the grid. You should definitely play with the UIElementViewer I linked in a previous post should you want to try either of these approaches so that you can see the hierarchy.