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
CellAppearance seems to be ignored after loading isl style
posted

Hi,

I use UltraGrid in virtual mode. The ForeColor and BackColor of each UltraGridColumn is set by using its property CellAppearance. After I started using AppStyling, the ForeColor and BackColor of any column with a ValueList are ignored. I also tried to play with style roles of ValueList and ValueListItem in an isl file and I could not get ForeColor and BackColor of a ValueList column to work. What do I miss here?

Your help is greatly appreciated!

Best Regards,
Shaolin


Parents
No Data
Reply
  • 4625
    Offline posted

    Hi Shaolin,

    Thank you for posting in our forums!

    Let me clarify something. Your application had appearances with specific colors, but when an AppStylist is loaded, these appearances are gone and can’t be modified. Please correct me if I misunderstand something.

    It is completely normal that the appearance objects are not honored at runtime when a style library is loaded. The idea behind the style library is to apply all appearances in design time via the AppStylist application. In case any particular appearance is modified by the loaded style library, you can’t change it at runtime.

    My advice would bet to either use a style library and resolve all appearances by the file itself or rely on customizing and set different appearance objects via Visual Studio designer or at runtime. It would be a real mess if you have applied appearances and at given moment decide to load a style library, because at the end you will end up not knowing why a specific appearance is set or not.

    Please let me know if you have any additional questions regarding this matter.

Children