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
641
Changing Selected Background on Dynamic Object
posted

I'm dynamically creating WebCombos on the server side, then populating them and change attributes.  I'm tring to change the background of the selected row with the code below, but it still remains the default blude.  I can change other options (like the font), but not the background color.  Does anyone know if this is a bug?

myCombo.DropDownLayout.SelectedRowStyle.BackColor = System.Drawing.Color.FromArgb(247, 143, 30)

 

Parents
  • 875
    posted

    Did you ever figure out how to fix this?  I'm having the same problem.

    combo.DropDownLayout.SelectedRowStyle.BackColor = System.Drawing.ColorTranslator.FromHtml("#87BCE8")

    I'm also getting a small black border around the selected row which I've also tried to set to the same colour as the above-mentioned colour, but it's not changing.

    It's frustrating.

Reply Children
No Data