Hi,
Based on some screen interaction I suppouse to change backcolor of each grid header to Red, I can't acomplish this anyhow, color remained default (gray) all the time. Here is my code:
For Each col As UltraGridColumn In Me.grd.DisplayLayout.Bands(0).Columns If col.Hidden = False Then _ col.Header.Appearance.BackColor = Color.RedNext
Please let me know what I am doing wrong.
Thanks!
The Windows Theming API just draws the background. The Foreground (text) is not themed. So that's why it works for ForeColor, but not BackColor.
Thanks it is working now, odd that ForeColor working without this line:
col.Header.Appearance.ThemedElementAlpha = Infragistics.Win.Alpha.Transparent
I beleive this KB article will answer your question:
HOWTO:Change the Color of Column Headers in the WinGrid