电子灵魂

golang,go,C#,JAVA,PYTHON,PHP

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2015年11月1日

摘要: #region 方法一: DataTable tblDatas =new DataTable("Datas"); DataColumn dc =null; dc = tblDatas.Columns.Add("ID", Type.GetType("System.Int32")); dc.AutoIncrement =true;//自动增加 dc.AutoIncrementSeed =... 阅读全文
posted @ 2015-11-01 16:44 conncent 阅读(18277) 评论(1) 推荐(5) 编辑

2015年7月11日

摘要: 3、表格打印也是最常见的,打印代码如下:PrintingSystem ps = null;DevExpress.XtraPrinting.PrintableComponentLink link = null;ps = new DevExpress.XtraPrinting.PrintingSyste... 阅读全文
posted @ 2015-07-11 09:27 conncent 阅读(1595) 评论(0) 推荐(0) 编辑

2015年7月1日

摘要: 1,增加新行用InitNewRow事件,给新行某字段赋值。后结束编辑。 private void grdView_InitNewRow(object sender, DevExpress.XtraGrid.Views.Grid.InitNewRowEventArgs e) { DevExpress.XtraGrid.Views.Grid.GridView view = sende... 阅读全文
posted @ 2015-07-01 12:06 conncent 阅读(9227) 评论(0) 推荐(0) 编辑

2015年6月27日

摘要: (?\w+)(?=', 'TOP'\))(?)(.*?)(?=\[\s\S]*?)(?[^']+)(.*?)---------------------------------------------------------------------------\n\r\r\n(\r\n)*(\n\r)... 阅读全文
posted @ 2015-06-27 01:41 conncent 阅读(624) 评论(0) 推荐(0) 编辑

2015年6月23日

摘要: //public static object ToDBNull(object value) 判断插入数据的时候个别参数不能为空的时候做的判断方法 //{ // if (value == null) // { // return ToDBNull.Value; // } ... 阅读全文
posted @ 2015-06-23 01:34 conncent 阅读(1685) 评论(0) 推荐(1) 编辑

2015年6月14日

摘要: 调用方式: RibbonForm mdishow = new RibbonForm(); //实例化 midshow.MdiParent = this; //设置在主窗体,以MDI的方式显示,关键属性。 mdishou.Show();//显示窗体 大伙都会碰到的问题。 解决闪屏问题,添加在主窗体任意地方: protected overri... 阅读全文
posted @ 2015-06-14 12:35 conncent 阅读(415) 评论(0) 推荐(0) 编辑

摘要: Grid Designer>Views>Appearance>HeaderPanel>TextOptions>HAIignment{Center} 依次打开并找到HAILignment修改最后面的参数. 居中效果 阅读全文
posted @ 2015-06-14 11:41 conncent 阅读(1076) 评论(0) 推荐(0) 编辑

摘要: 放在主程序 入口处, public Form1() { InitializeComponent(); gridView1.IndicatorWidth = 50; //官方推荐常用是30,至于多少自己根据自己的需求和喜好去修改宽度的大小。 } 则每次程序运行时都能正确完整的显示序列号。 附送2种方法。 pr... 阅读全文
posted @ 2015-06-14 10:26 conncent 阅读(1063) 评论(0) 推荐(0) 编辑

2015年6月13日

摘要: 将下面的代码随便放到主窗体的任何一个地方 protected override CreateParams CreateParams //解决MDI闪屏 { get { CreateParams cp = base.CreateParams; cp.ExStyle |= ... 阅读全文
posted @ 2015-06-13 18:08 conncent 阅读(1250) 评论(1) 推荐(2) 编辑

摘要: 下面是笔者自己总结的使用 DevExpress Gridview 的一些经验小结,分享给大家: 1、去除 GridView 头上的 "Drag a column header here to group by that column" --> 点击 Run Designer -> 找到:OptionView -> 将 ShowGroupPanel : 设置为 false ; 2、如何... 阅读全文
posted @ 2015-06-13 15:58 conncent 阅读(3882) 评论(0) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页