This example demonstrates how to manually draw an editor in column headers and activate them on mouse click.
Question Comments
Added By: Yuan Kwei Huang at: 6/29/2014 10:24:36 AM
Sorry, I read your sample code, but still have not idea how to use it.
How do I combine my grid control/view with this sample code?
I see that you posted a separate ticket with the same questions: How to provide inplace editors for columns headers?.
I'll answer you in that thread.
Added By: Stefan Wohlfarth at: 10/10/2017 8:04:53 AM There is a slight problem when using an AdvBandedGrid. If you register an editor to a column with rowindex > 0 the method CalcColumnHitInfo might return the wrong column. Not only do you have to check IntInRange for pt.X but also for pt.Y like:[C#]if(!ci.Bounds.IsEmpty&&IntInRange(pt.X,ci.Bounds.Left,ci.Bounds.Right)&&IntInRange(pt.Y,ci.Bounds.Top,ci.Bounds.Bottom)){......