关于DevDxpress GridView的列标题如何文本多颜色表示问题

 前面写了一篇DevExpress Winform的Html 格式文本支持的控件和便签写法,这里就简单介绍关于GridView的列标题如何实现文本多颜色的方法,设置GridView列的文本为Html Formting前,首先设置

GridView.OptionView.AllowHtmlDrawColumnHeader=true;

接下来设置Column的Caption的文本

gridColumn1.Caption="列标题1(<size=12><color=red>*</color></size>)";

效果图:

猜你喜欢

转载自blog.csdn.net/u012097590/article/details/93535591