上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: (1) this.gridView2.IndicatorWidth = 30;//设置显示行号的列宽 (2) 设置动作gridvoidgridView2_CustomDrawRowIndicator(objectsender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { if(e.Info.IsRowIndicator && e.RowHandle >= 0) { e.Info.DisplayText = (e.Row... 阅读全文
posted @ 2013-11-21 15:04 bert.zeng 阅读(2255) 评论(0) 推荐(0)
摘要: List list = new List(); list.Add(new GridData() { col1 = "A1", col2 = "A2", col3 = "A3" }); list.Add(new GridData() { col1 = "B1", col2 = "B2", col3 = "B3" }); list.Add(new GridData() { col1 = "C1", col2 = "C2", col3 = & 阅读全文
posted @ 2013-11-18 16:50 bert.zeng 阅读(18942) 评论(5) 推荐(2)
摘要: DevExpressRegSetup_v11.2.xxR4注册失效解决方法打开 项目 Properties 目录下 licenses.licx删除关于 Devexpress 的信息,加入DevExpressReg.LicensePatcher, DevExpressReg, Version=11.2.0.4, Culture=neutral, PublicKeyToken=d6ff4ebaea2d8ac4重新编辑解决否则编译运行时弹出过期,关闭后程序退出。licenses.licx文件在项目的 Properties 目录下 阅读全文
posted @ 2013-11-13 00:55 bert.zeng 阅读(416) 评论(0) 推荐(0)
摘要: 例:声明一个名为"color" 的变量。把当前元素 color属性的值赋给"color" 变量。如果当前元素没有color属性,则"color" 变量的值将为"green": green ------------------ 阅读全文
posted @ 2013-10-15 23:57 bert.zeng 阅读(86) 评论(0) 推荐(0)
摘要: --> --> --> --> --> --> --> 阅读全文
posted @ 2013-09-16 19:43 bert.zeng 阅读(498) 评论(0) 推荐(0)
摘要: SELECT column_name AS `列名`, data_type AS `数据类型`, character_maximum_length AS `字符长度`, numeric_precision AS `数字长度`, numeric_scale AS `小数位数`, is_nullable AS `是否允许非空`, CASE WHEN extra = 'auto_increment' THEN 1 ELSE 0 END AS `是否自增`,column_default AS `默认值`, column_comment AS `备注` FROM Information_ 阅读全文
posted @ 2013-08-01 00:33 bert.zeng 阅读(185) 评论(0) 推荐(0)
摘要: Model映射: /// /// 没有元数据文档可用。 /// [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysMenu")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class SysMenu : EntityObject { #region 工厂方法 /// /// 创建新的 SysMenu 对象。 //... 阅读全文
posted @ 2013-07-29 00:37 bert.zeng 阅读(811) 评论(0) 推荐(0)
摘要: ASP.Net:只需把 AssemblyInfo.cs文件中的[assembly: AssemblyVersion("1.0.0.0")]改成[assembly: AssemblyVersion("1.0.*")],另外还需要把[assembly: AssemblyFileVersion("1.0.0.0")]注释屏蔽掉。这样再生成的程序集就是自动版本号了。按照这个格式出来的版本号,内部修订版本号(第三个字段)的位置出现的是2000年1月1日到编译日期的天数,内部修订号(第四个字段)是当天从0点到当前时间的刻度数。WinForm:右键 阅读全文
posted @ 2013-07-13 01:58 bert.zeng 阅读(614) 评论(0) 推荐(0)
摘要: //创建xmlView Code 1 View Code 2 [TestClass] 3 public class UnitTest1 4 { 5 static string xmlPath = "app.xml"; 6 7 [TestMethod] 8 public void CreateXML() 9 {10 XNamespace ns = "http://www.so12.com/App";//命名空间11 XDocument doc... 阅读全文
posted @ 2013-05-02 08:16 bert.zeng 阅读(188) 评论(0) 推荐(0)
摘要: public void IndexAsync() { AsyncManager.OutstandingOperations.Increment(2); Task.Factory.StartNew(() => { string url = "http://www.cnblogs.com"; WebClient client = new WebClient(); string reply=client.DownloadString(url); System.Threading.Thread.Sleep(10000); AsyncManager.Parameters[&qu 阅读全文
posted @ 2013-02-03 21:16 bert.zeng 阅读(209) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页