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
150
Style for Ultragrid cell with ColumnStyle.DropDownValidate set
posted

Hi,

I am trying to set the background of the columns using AppStylist (Metro Design). Unfortunately I am unable to figure out what style I have to set to remove the white background in DropDown Cells.

I have attached a screenshot showing the grid with alternating rowcolors and as you can see the Dropdown column is ignoring this Setting.

Can you please tell me what style I need to adapt.

Many thanks

Thomas

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Thomas,

    The cell will pick up the background color of the selected item on the list. So my guess is that you are somehow applying a color to the list items without realizing it. This happens a lot when an isl file applies a Background color on the Base role. As a general rule, it's a bad idea to use the Base role for anything other than turning off themes.

    If it's not the Base role, then it's probably the ValueListItem role. Applying a color to the ValueListItem role affects every individual item. A better way to do this is to apply the color to the ValueList role, instead.

    You mentioned Metro - does that mean you are using our Metro isl? Or are you creating one of your own? I thought we fixed this in the latest versions of our isl files. So if it's one of ours, you might be using an older version.

    Anyway, if none of this helps, post your isl here and I will check it out and see if I can track down what's going on.

Children