隐藏 显示 Devexpress LayoutControlItem
摘要:LayoutControlItem.Visibility = LayoutVisibilityConvertor.FromBoolean(true/false);
阅读全文
posted @
2014-04-01 18:08
程路
阅读(755)
推荐(0)
devexpress GridControl 自定义卡片标题
摘要:卡片标题默认显示是Record [n of N],但也可以强制使卡片标题显示卡片内的字段值。只需把卡片的 CardCaptionFormat 属性设置为 “{3} ” 则显示卡片第二列的值
阅读全文
posted @
2013-09-13 10:06
程路
阅读(632)
推荐(0)
DevExpress 将自定义数据源绑定到GridControl相应的列、行中
摘要:1、自定义一个DataTable,添加列名DataTable dt = new DataTable();//添加的列名应与GridView中相应列的FieldName一致 dt.Columns.Add("自定义列1", Type.GetType("System.String")); dt.Columns.Add("自定义列2", Type.GetType("System.String")); ...2、往DataTable中添加行 DataRow newRow = dt.NewRow(); newRow["
阅读全文
posted @
2013-09-12 22:52
程路
阅读(627)
推荐(0)
[转]DevExpress GridControl 用路径加载图片,插入到Grid列中
摘要:要实现该功能,可通过非绑定列的方式来实现。具体实现方法如下:1.创建了一个非绑定列并设置其相应的属性,属性设置如下:FieldName设为 Image (该字段名必须是唯一的)UnboundType设为 UnboundColumnType.ObjectColumnEdit设为RepositoryItemPictureEdit类的实例(该操作PictureEdit 为该列的内置编辑器)2. 处理View的CustomUnboundColumnData事件,用于为非绑定列填充数据。在该事件中需加载图片,将其存放在一个hashtable中,然后再将其提供给对应的单元格。using System;us
阅读全文
posted @
2013-09-12 22:39
程路
阅读(846)
推荐(0)
DevExpress popupMenu 分隔符
摘要:在菜单项上右击选择Begin a Group
阅读全文
posted @
2013-09-10 14:47
程路
阅读(425)
推荐(0)
获得NavBarControl点击项的名称
摘要:在NavBarControl控件的LinkClicked事件中使用e.Link.Caption就可以获得点击项的名称
阅读全文
posted @
2013-08-29 18:46
程路
阅读(240)
推荐(0)
读取xml节点下的内容,并添加到NavBarControl中
摘要:string tulipath = Application.StartupPath + "//tuli.xml";//xml路径 XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(tulipath);//加载xml XmlNode root = xmlDoc.SelectSingleNode("//root");//寻找root节点 string groups = ""; if (root != null) { groups = (root.SelectSingleNode(&qu
阅读全文
posted @
2013-08-29 17:16
程路
阅读(325)
推荐(0)