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
885
Changing column header backcolor in runtime
posted

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.Red
Next

Please let me know what I am doing wrong.

Thanks!