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
935
Change part of selected text color within a cell at runtime
posted

Hi

 I am looking for a functionality something like user can select a part of the text within a cell and

 right click -select Hightlight menu whch should change the selected text color to red.

Thanks

 

 

  • 469350
    Suggested Answer
    Offline posted

    There's no built-in support to allow the user to change the text colors, but you might be able to implement this using the FormattedText style on the column.

    It depends on a lot of factors, like the DataType of the column and whether or not it's a bound column. For FormattedText to work, the column would have to be a string, and highlighting the text would change the value of the cell, so you either have to save the highlighting along with the data or else create an unbound column to mirror the real data.

    And you would need to create your own UI for changing the colors and such and then alter the cell value accordingly.