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
105
How to underline the text in the cell and click it to trigger an event
posted

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.

Parents Reply Children
No Data