摘要: Asp.Net 2.0 GridView control is very powerful control. Developers at Microsoft really did a great job when designing it.Its like Swiss Army knife for ... 阅读全文
posted @ 2010-12-01 09:27 laughter 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 1、在指令中添加 EnableEventValidation="false" 2、在RowDataBound事件中添加 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){switch ... 阅读全文
posted @ 2010-11-28 22:19 laughter 阅读(1550) 评论(0) 推荐(0) 编辑
摘要: 前一阵子,有位仁兄问我:“怎么样得到点击某节点时击发一个返回服务器处理的事件?”我给了他以下函数,并告知他TreeView的AutoPostBack一定要打开(值为True): private void TreeView1_SelectedIndexChange(obj... 阅读全文
posted @ 2010-11-28 20:33 laughter 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 最近使用到C1的系列控件:C1FlexGrid和C1TrueDBGrid。 遇到一个很头疼的问题,表格在重新绑定数据之后会重置列,所有的用户Layout信息全部都会被清除。 this.setDataBinding(dt,"",true); 或者this.HoldFields();也不能达到效果 最后... 阅读全文
posted @ 2010-09-21 10:19 laughter 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 这是一个教你创建一个LINQ IQueryable Provider的系列教程,总共13篇,来源于The Wayward WebLog,翻译中除去了一部分作者的琐碎之语,如有翻译不当之处,请指出,谢谢! 系列索引: Part I - Reusable IQueryable base classe... 阅读全文
posted @ 2010-08-21 19:37 laughter 阅读(1793) 评论(2) 推荐(2) 编辑
摘要: 首先要添加引用Microsoft.VisualBasic,还要添加命名空间:using Microsoft.VisualBasic; 下面是代码: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)ht... 阅读全文
posted @ 2010-08-20 16:08 laughter 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 来自于MSDN论坛 Zhi-Xin Ye http://social.msdn.microsoft.com/Forums/en-IE/winformsdatacontrols/thread/a44622c0-74e1-463b-97b9-27b87513747e 关于DataGridView的技巧 ... 阅读全文
posted @ 2010-05-21 14:32 laughter 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 来自于:AlexJ http://blogs.msdn.com/alexj/archive/2007/11/22/t-castbyexample-t-object-o-t-example.aspx T CastByExample(object o, T example) So earlier t... 阅读全文
posted @ 2010-05-21 10:22 laughter 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 最近在使用Ado.net Entity Framework和Linq to entities时遇到大量的winform实体数据绑定问题,部分暂时还未能解决,现暂时记录于此,逐步解决。 1.匿名类型不能绑定 现在怀疑匿名类型的属性全部是以字段形式保存在内存中的,而winform空间是不支持字段绑定的,... 阅读全文
posted @ 2010-05-21 09:42 laughter 阅读(378) 评论(1) 推荐(0) 编辑
摘要: 让组合控件支持添加子控件 阅读全文
posted @ 2010-04-28 13:29 laughter 阅读(1196) 评论(3) 推荐(0) 编辑