摘要: [代码] 阅读全文
posted @ 2010-01-30 19:05 滴水铭心 阅读(1114) 评论(1) 推荐(0) 编辑
摘要: 提交当前行的修改using DevExpress.XtraGrid;using DevExpress.XtraGrid.Views.Base;using System.Data.Common;//...public void UpdateDatasource(GridControl grid) { //Save the latest changes to the bound DataTable C... 阅读全文
posted @ 2010-01-30 17:09 滴水铭心 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 一,主从表的设置代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--DataTabledt=pb.GetItemInfoList(Port).Copy();//返回一个TABLEdt.TableName="ItemInfo";ds.Tables.Ad... 阅读全文
posted @ 2010-01-30 13:46 滴水铭心 阅读(2647) 评论(2) 推荐(0) 编辑
摘要: 定义焦点行的方法: gridView_bcode.FocusedRowHandle = focuseRowInt; //通过设置GridView 的FocusedRowHandle属性 view plaincopy to clipboardprint?//获取焦点行任意单元格的数据 ColumnView cv = (ColumnView)gridControl_Gongzi.FocusedVie... 阅读全文
posted @ 2010-01-30 06:40 滴水铭心 阅读(1881) 评论(0) 推荐(0) 编辑
摘要: DevExpress XtraGrid的功能实在强大,刚使用的时候看到一大片属性设置,分不清东南西北,参照demo和使用中的一些经验,记录一下使用方法。现在数据库访问都使用ORM技术了,对于DataSouce绑定以下是以IList为说明对象。控件基本定义 DevExpress.XtraGrid.GridControl gridControl1;1、 数据绑定(IList)[代码]2、 在Grid上... 阅读全文
posted @ 2010-01-30 06:23 滴水铭心 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: 先看下面的图1.自定义的列菜单2.XtraGrid自带的列菜单3.混合的列菜单实现代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatevoidgvUploadData_ShowGridMenu(objectsender,GridMe... 阅读全文
posted @ 2010-01-30 06:13 滴水铭心 阅读(777) 评论(0) 推荐(0) 编辑