[DevExpress Support Team: CLONED FROM T829410: XtraGrid - Column headers do not display multiline text in DirectX mode]
So much appreciated on your assistance. It works.
Currently am facing one more difficulties, that when i switch to "Office 2019 Black" theme, then the GridControl_PaintEx, e.Cache.DrawLine color get's WHITE and it's doesn't looks good. But in "Visual Studio 2013 Dark" it's works. Also tested on "Basic" theme the same issue is occurring.
I have attached a little clip and the modified project for your quick/easy understanding. Awaiting your kind reply.
Thank you for the sample project. The cause of this behavior is the difference between the way the skin color is determined in raster and vector skins. Use the element.Color.GetBackColor method instead of reading the BackColor property directly:
Private Sub GridControl_PaintEx(sender As Object, e As PaintExEventArgs) ''''' Dim pen As Pen = New Pen(element.Color.GetBackColor())
This way, everything will work as expected regardless of the active skin.
By the way, determining the skin element color in the PaintEx event handler is not resource effective. Instead, I recommend you cache the corresponding pen in a separate field. Then, use the LookAndFeel.StyleChanged event to catch the moment when the active skin changes to update this pen. I updated your project to show how to do this. I hope it will be helpful.