I''m trying to underline the text in a currencycell but setting GridStyleInfo.Font.Underline = true is not working. When you click on the cell to edit it, it will show it as underlined, but when focus leaves that cell the text is no longer underlined. Is there a way to fix this?
I had tried this before, but tried at again at your suggestion. Still does not work though.
ADAdministrator Syncfusion Team May 26, 2004 12:00 PM
I am sorry, I misread, thinking you wanted to underline the CurrentCell instead of a CurrencyCell.
In the CellTypes\Currency sample, I added style.Font.Underline = true. On first appearance, it does look like the underline is not being shown on statically drawn cells. But if you drag the row heights a little larger, I do in fact see the underline. So, is this what is happening in your case? If so, will slightly enlarging the rowheights work for you? Adding this line in that sample makes the underline should up for me.
private void Form1_Load(object sender, System.EventArgs e)
this.gridControl1.DefaultRowHeight += 1;
CSCole SheltonMay 26, 2004 12:43 PM
That fixed my problem, Thanks a million.