摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceClassAboutArray{publicclassCre... 阅读全文
posted @ 2010-02-01 16:37 滴水铭心 阅读(529) 评论(0) 推荐(0) 编辑
摘要: Developer Express(以下简称dev) 这个第三方控件是VS2005自带的datagridview控件的重写版本.对于一些grid外观,模板列的设置有非常简单的方法.而且控制起来基本和datagridview一样.所以还是比较方便的.把dev控件拖到窗体以后,会发现多了两个控件gridcontrol1,gridview1,下面针对这期间使用dev的一些总结写在下面(主要是连接数据库,... 阅读全文
posted @ 2010-01-31 15:43 滴水铭心 阅读(2190) 评论(0) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2010-01-30 19:05 滴水铭心 阅读(1113) 评论(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 滴水铭心 阅读(1000) 评论(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 滴水铭心 阅读(2633) 评论(2) 推荐(0) 编辑
摘要: 定义焦点行的方法: gridView_bcode.FocusedRowHandle = focuseRowInt; //通过设置GridView 的FocusedRowHandle属性 view plaincopy to clipboardprint?//获取焦点行任意单元格的数据 ColumnView cv = (ColumnView)gridControl_Gongzi.FocusedVie... 阅读全文
posted @ 2010-01-30 06:40 滴水铭心 阅读(1873) 评论(0) 推荐(0) 编辑
摘要: DevExpress XtraGrid的功能实在强大,刚使用的时候看到一大片属性设置,分不清东南西北,参照demo和使用中的一些经验,记录一下使用方法。现在数据库访问都使用ORM技术了,对于DataSouce绑定以下是以IList为说明对象。控件基本定义 DevExpress.XtraGrid.GridControl gridControl1;1、 数据绑定(IList)[代码]2、 在Grid上... 阅读全文
posted @ 2010-01-30 06:23 滴水铭心 阅读(1155) 评论(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 滴水铭心 阅读(776) 评论(0) 推荐(0) 编辑