开发者

Default Cell Format Changing Automatically on Datagrid [duplicate]

开发者 https://www.devze.com 2023-03-15 11:05 出处:网络
This question already has answers here: WinForms DataGridView font size (11 answers) Closed 8 years ago.
This question already has answers here: WinForms DataGridView font size (11 answers) Closed 8 years ago.

I have a datagrid that I am trying to format with a specific font. It is currently set to Arial 8 on the ColumnHeadersDefaultCellStyle, DefaultCellStyle, RowHeadersDefaultCellStyle, RowsDefaultCellStyle.

I am trying to change the font to Verdana 8. But everytime I try to make this change a开发者_StackOverflownd rebuild my application it reverts back to Arial 8.

Can anyone offer any suggestions?

Thanks


I don't know why it is not keeping the font value in the Properties Window but I fixed it but using the code I found here on stackoverflow

WinForms DataGridView font size

0

精彩评论

暂无评论...
验证码 换一张
取 消