Last Updated: February 25, 2016
· hjwu

How to show '&' on LabelControl.Text

I need to show 'S&P' on DevExpress LabelControl.Text but it show 'S<u>P</u>', where 'P' is underline.

At first, I change '&' as fullwidth , '&' , to solve. But I find LabelControl.Text: Does Not Display '&' If String Contains This Character gave answer.

A character followed by the & sign within a caption is used as a mnemonic char. If you need to show the ampersand symbol, you should use the "&&" string.