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
2005
Change background color of row spaces
posted

Hey,

I use an UltraGrid and would like to change the background color of row spaces. The row spaces can be setup by using RowSpacingAfter and RowSpacingBefore of a UltraGridBand's UltraGridOverride. Can someone please give me some help please?

Your help is greatly appreciated!

Best Regards,
Shaolin

  • 1980
    Offline posted

    Hello Shaolin,


    The grid does not have a row space UIElement, it has a background area and the space between rows allows the background area of the grid to show through.


    So, what you can do in this case is change the grid’s background color in the Appearance object of the DisplayLayout


    this.ultraGrid1.DisplayLayout.Appearance.BackColor = Color.Red;