上一页 1 2 3 4 5 6 ··· 9 下一页

2018年10月7日

C#日期处理(转) 太忘记了,备忘

摘要: //今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,同理,加一 DateTime.Now.AddDays(1).ToShortDateString(); //2010年1月1日 星期三 DateTime.Now.ToStrin... 阅读全文

posted @ 2018-10-07 09:09 _ali 阅读(177) 评论(0) 推荐(0) 编辑

2018年7月21日

C#、devExpress 的 给bandedGrid加菜单功能 :复制、粘贴的例子(转)

摘要: C#、devExpress 的 给bandedGrid加菜单功能 :复制、粘贴的例子 CopyFromGrid PasteToGrid PasteNewRowsToGrid 阅读全文

posted @ 2018-07-21 10:14 _ali 阅读(752) 评论(0) 推荐(0) 编辑

2018年6月28日

Dev

摘要: RepositoryItemTextEdit repositoryItemTextEdit1 = new RepositoryItemTextEdit(); repositoryItemTextEdit1.Mask.EditMask = "\\d{0,}\\.[0,5]|\\d{0,}"; repositoryItemTex... 阅读全文

posted @ 2018-06-28 15:01 _ali 阅读(210) 评论(0) 推荐(0) 编辑

DEV中gridview常用属性

摘要: 1.隐藏最上面的GroupPanel: gridView1.OptionsView.ShowGroupPanel=false; 2.得到当前选定记录某字段的值: sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString(); 阅读全文

posted @ 2018-06-28 15:00 _ali 阅读(296) 评论(0) 推荐(0) 编辑

2018年4月20日

加密

摘要: //须添加对System.Web的引用 using System.Web.Security; ... /// /// SHA1加密字符串 /// /// 源字符串 /// 加密后的字符串 public string SHA1(string source) { return FormsAuthentication.HashPasswordForStori... 阅读全文

posted @ 2018-04-20 15:32 _ali 阅读(214) 评论(0) 推荐(0) 编辑

2017年11月30日

SQL Server 常用分页SQL(转)

摘要: 发现网上好多都是错的。网上经常查到的那个Top Not in 或者Max 大部分都不实用,很多都忽略了Order和性能问题。为此上网查了查,顺带把2000和2012版本的也补上了。 先说说网上常见SQL的错误或者说局限问题 1 2 3 4 5 select top 10 * from table1 阅读全文

posted @ 2017-11-30 09:24 _ali 阅读(220) 评论(0) 推荐(0) 编辑

2017年11月28日

c# 常用函数

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 阅读全文

posted @ 2017-11-28 16:10 _ali 阅读(353) 评论(0) 推荐(0) 编辑

2017年11月16日

dev grid 常用方法

摘要: 绑定数据源 public void Data(){DataTable td = new DataTable();DataRow row = td.NewRow();foreach (GridColumn item in gridView1.Columns){DataColumn it = new D 阅读全文

posted @ 2017-11-16 09:30 _ali 阅读(965) 评论(0) 推荐(0) 编辑

2017年9月20日

XAF 如何从Excel复制多个单元格内容到GridView(收藏)

摘要: how to paste some excel content to xtragrid? 1.相關資料 http://community.devexpress.com/forums/t/36684.aspx http://community.devexpress.com/forums/t/58611 阅读全文

posted @ 2017-09-20 15:05 _ali 阅读(260) 评论(0) 推荐(0) 编辑

2017年9月11日

dev EditMask 设置方法

摘要: 官方帮助地址: https://documentation.devexpress.com/WindowsForms/583/Controls-and-Libraries/Editors-and-Simple-Controls/Simple-Editors/Concepts/Masks/Mask-Ed 阅读全文

posted @ 2017-09-11 08:23 _ali 阅读(715) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页

导航