Dear Reader
Precondition: Suppose I have a grid. I have also set the ColumnStyle to FormattedText . The original text in the cell is "Hello World" .First I use "string.Replace("Hello", "<font color=\"red\">Hello</font>") " to change the color of part of the text.
How can I underline the whole text in the cell whatever the value in it?
Then how can I click the underlined text in this cell to trigger an event just like "ClickCellButton"(but I don't want to set the ColumnStyle to Button) , in order that I can get the object of the Cell or Row and do some other functon.
If you want the cell to look and feel like a hyperlink, then you can just set the Style of the column to URL.
Hi,Mike
If I set the Style of the column to URL. Can I also use "string.Replace("Hello", "<font color=\"red\">Hello</font>") " to change the color of part of the text?
No, I think if you want to control the color, you will have to use a style of FormattedText.