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
765
WinGrid AppStyling
posted

Hello,

i use the grid with AppStyling.

Is it possible to Change only the row Color at runtime (but all other Settings from the AppStyling)?

Thank you for your help.

Ronald

  • 2005
    Suggested Answer
    Offline posted

    Hi Ronald,

    You need to change Appearance of of each UltraGridRow object and it can be done inside your event handler of InitializeRow. You don't need to mess with an isl file.

    Best Regards,
    Shaolin

  • 4625
    Offline posted

    Hi Ronald,

    Thank you for posting in our forums!

    Yes, this is possible.

    Just open the ISL file with your favorite text editor and you will see that the ISL file is actually an XML based document where each style node has state child nodes. The style you should be looking for is with attribute role equal to “GridRole”. In case you do not want the style library to override a particular appearance or an element, you can just delete the entire style node or state child node corresponding to the appearance you would like to be removed. After the style library (ISL file) is modified as per your requirement, you will be allowed to set the row appearance at runtime.

    Please let me know if you have any additional questions.