Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
set Bottom border for UltraGrid Header
posted

Hi there,

I want the header of my UltraGrid to have a border only on the bottom

First I tried by Implementing the IUIElementDrawFilter and in the Draw Element function, I managed to draw a bottom line for my header. But the line is having weird behavior. If I point my cursor at the header, It sort of disappears and when I click on the header the line appears (kindly see the attached video below) 

Then I tried implementing the IUIElementCreationFilter Interface and inside the AfterCreateChildElements function I check if the UI Element is HeaderUIElement so that I can set the BorderStyle and BorderSides properties but this throws me an “Specified method is not supported.” error. 

Here is the Link (https://www.transferxl.com/04jYdDShFBDnYj) for my project with the exact code I wrote for both interfaces (IUIElementDrawFilter and IUIElementCreationFilter)

Kindly look into this and help me in this regard 

Regards.