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
190
Change font attributes in UltraGridCell after data bind
posted

I have an Ultra Grid where the client wants the text in a particular column to appear in a different color if the text is the word "suspicious". I have looked for an applicable event to capture where I can check the value of the cell and change the ForeColor as needed but nothing seems to apply.

 Am I approaching this incorrectly?

 Thanks.

Parents
No Data
Reply
  • 990
    Verified Answer
    posted

    Alternatively, you can use the ValueBasedAppearance property of the Column.

    Using the designer, navigate to Band and Column Settings/Band 0/Columns then select the column in question. Scroll down the Properties list to near the bottom where you'll find ValueBasedAppearance. Click the button on the right. When the dialogue box opens, click the Add Operator Condition button and fill in the Add Condition/Appearance Mappings.

    Set the value to "suspicious" and the ForeColor to the colour required.

    Andy.

Children