[英]Font change in RadGridView
請記住,對於某些控件(如 RadLabel),設置 Font 屬性就足夠了,而對於其他控件(如 RadGridView),您需要在格式化事件中引入此設置,例如 RadGridView 的CellFormatting / ViewCellFormatting事件提供:
Font f = new Font("Arial", 10, System.Drawing.FontStyle.Regular);
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
e.CellElement.Font = f;
}
我建議您查看以下知識庫文章: https://docs.telerik.com/devtools/winforms/knowledge-base/change-the-font
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.