DEV
青山青
这个作者很懒,什么都没留下…
展开
-
Dev PopupMenu实现自定义右键菜单,添加二级菜单,添加菜单项分割
private void Form1_MouseUp(object sender, MouseEventArgs e){ if (e.Button == MouseButtons.Right) { popupMenu1.ShowPopup(Control.MousePosition); } }PopupMenu popupMenu1 = null;private void Form1_Load(object sender, EventArgs e){ popupMe...原创 2020-06-04 11:21:46 · 2204 阅读 · 0 评论 -
Dev 垂直滚动条滚动到Gridview顶端位置
gridView1.OptionsBehavior.AllowPixelScrolling = DevExpress.Utils.DefaultBoolean.True; gridView1.SmoothScroll(0);原创 2020-05-28 10:41:31 · 1131 阅读 · 1 评论 -
Dev 按某列分组
DataTable dt = new DataTable(); dt.Columns.Add("ID"); dt.Columns.Add("NAME"); dt.Rows.Add(1,"aa"); dt.Rows.Add(2, "bb"); dt.Rows.Add(3, "aa"); dt.Rows.Add(4, "bb"); ...原创 2020-05-23 15:49:29 · 531 阅读 · 0 评论 -
DevExpress WinForm 使用Dev主题
static void Main(string[] args){ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DevExpress.UserSkins.BonusSkins.Register(); if (!DevExpress.Skins.SkinManager.AllowFormSkins) { DevExpress.Skins.SkinManager.原创 2020-05-20 13:58:28 · 462 阅读 · 0 评论 -
Dev Treelist 批量拖拽
treeList1.OptionsSelection.MultiSelect = true; treeList1.OptionsDragAndDrop.DragNodesMode = DragNodesMode.Multiple;原创 2020-03-30 15:21:21 · 275 阅读 · 0 评论 -
Dev TreeList 自定义节点样式
using System.Drawing;using System.Drawing.Drawing2D;using DevExpress.XtraTreeList;private void treeList1_CustomDrawNodeCell(object sender, CustomDrawNodeCellEventArgs e) { // Create brushes f...转载 2019-12-11 16:36:09 · 928 阅读 · 0 评论 -
Dev Treelist 双击获取节点 ,通过FocusedNode获取不可靠
通过Treelist的 CalcHitInfo 方法,返回结果TreeListHitInfo,里面Node即为点击到的节点。 private void TreeList1_MouseDoubleClick(object sender, MouseEventArgs e) { TreeListHitInfo hitInfo= treeList1.Ca...原创 2019-10-31 20:38:31 · 1955 阅读 · 0 评论 -
以Tab页的形式添加DockPanel
DevExpress.XtraBars.Docking.DockPanel panel0 = this.dockManager1.AddPanel(DockingStyle.Left); panel0.Text = "panel0"; DevExpress.XtraBars.Docking.Dock...原创 2019-10-31 15:36:09 · 818 阅读 · 0 评论 -
DevExpress.XtraTreeList.TreeList 的几点认识
//1.显示数据好像只能通过绑定数据源的方式 DataTable dt = new DataTable(); dt.Columns.Add("ID"); dt.Columns.Add("PID"); dt.Columns.Add("NAME"); dt....原创 2019-08-07 11:31:59 · 606 阅读 · 0 评论 -
Dev PropertyGridControl控件 移除某一Category下的属性
private void propertyGridControl1_CustomPropertyDescriptors(object sender, DevExpress.XtraVerticalGrid.Events.CustomPropertyDescriptorsEventArgs e) { if (e.Context.PropertyDescr...原创 2019-07-24 14:35:56 · 785 阅读 · 0 评论