当前位置:网站首页>About DevExpress settings record
About DevExpress settings record
2022-08-07 03:33:00 【Hometown of 2130】
目录
3.Cancel the right-click popup box of the control
5.devChinese help documentation for the control
6.The color of the table control is changed between odd and even lines

1.Dev使用皮肤
先使用上面的,Do not use the following
SkinSvgPalette skin = SkinSvgPalette.Bezier.MorayEel;
UserLookAndFeel.Default.SetSkinStyle(skin);
UserLookAndFeel.Default.SetSkinStyle("Office 2016 Black");
DevExpress.UserSkins.BonusSkins.Register();
DevExpress.UserSkins.OfficeSkins.Register();
DevExpress.Skins.SkinManager.EnableFormSkins();
UserLookAndFeel.Default.UseWindowsXPTheme = false;
UserLookAndFeel.Default.UseDefaultLookAndFeel = false;
UserLookAndFeel.Default.SetSkinStyle("Springtime");
2.Run Chinese
下载DevExpressLocalizedResources_2022.1_zh-CN.exe-C#文档类资源-CSDN下载
Modified to suffix namezh-CN,和exe放在同目录下.You can also download it by yourself on the official website
3.Cancel the right-click popup box of the control
一般有Properties的控件
ContextMenu emptyMenu = new ContextMenu();
buttonEdit2.Properties.ContextMenu = emptyMenu;gridControl1的设置
设置Run Design->OptionsMenu->EnableColumnMenu 设置为:false
4. dev中,使用html标签
可以使用HTML中的标签,Controls the style of a control
前提是必须支持AllowHtmlString.AllowHtmlStringProperties can be set in code,It can also be set on the interface.
具体代码
labelControl1.AllowHtmlString = true;
labelControl1.Text = "<color=red><size=14>天若有情天亦老</size></color><backcolor=yellow>人间正道是沧桑</backcolor>";效果

5.devChinese help documentation for the control

The documentation above is slightly older
网址
6.The color of the table control is changed between odd and even lines
效果

代码
Properties can also be set in the interface
DataTable dt = new DataTable();//创建表
dt.Columns.Add("ID", typeof(Int32));//添加列
dt.Columns.Add("Name", typeof(String));
dt.Columns.Add("Age", typeof(Int32));
dt.Rows.Add(new object[] { 1, "张三", 20 });//添加行
dt.Rows.Add(new object[] { 2, "李四", 25 });
dt.Rows.Add(new object[] { 3, "王五", 30 });
gridControl1.DataSource = dt;
//奇数行
gridView1.OptionsView.EnableAppearanceOddRow = true;
gridView1.Appearance.OddRow.BackColor = Color.Red;
//偶数行
gridView1.OptionsView.EnableAppearanceEvenRow = true;
gridView1.Appearance.EvenRow.BackColor = Color.Blue;边栏推荐
猜你喜欢

SaaS服务平台软件是什么?

Wechat applet online learning daily check-in and punch-in project source code introduction

封装 Encapsulation

智慧路灯远程智能控制

How to smoothly render tens of millions of 2D objects with WebGPU: based on the ray tracing line

83-MongoDB介绍

wpf中TreeView的滚动条

如何快速开发app?小程序+插件少不了

微信小程序的民宿客房预订uniapp小程序

工业5g路由器厂家
随机推荐
精彩回顾|云原生 Meetup 广州站
MySQL中自带的表
使用软引用实现缓存机制
等比例缩放
AtCoder—C - ABC conjecture
Hessian 序列化、反序列化
集合与迭代器
【LeetCode】1408. 数组中的字符串匹配
82-FastDFS detailed explanation
卫星星座1:Starlink星座
How to smoothly render tens of millions of 2D objects with WebGPU: based on the ray tracing line
KingbaseES V8R3集群管理维护案例之---集群迁移单实例架构
Definition and operation process of OAuth2
跨行求职数分的面试经验 + 未来职业规划
'Wed Aug 03 19:48:03 +0800 2022'这种字符串,怎么转成时间格式年月日
82-FastDFS详解
The sword refers to Offer II 029. Sorted circular linked list - pure linked list implementation
字符设备驱动
Day03 Common styles
mysql8修改密码