2014年3月14日
摘要: // 一个自用的 SqlHelper 类 利用了刚学习到的 扩展方法 http://technet.microsoft.com/zh-cn/bb383977 /// /// The SqlHelper class is intended to encapsulate high performance, /// scalable best practices for common uses of SqlClient. /// public abstract class SqlHelper { //Database connection st... 阅读全文
posted @ 2014-03-14 10:45 z5337 阅读(368) 评论(0) 推荐(0) 编辑
摘要: //允许增加一个 checkbox 列 public class DgvBase : DataGridViewX { protected override void OnColumnAdded(DataGridViewColumnEventArgs e) { base.OnColumnAdded(e); //if (e.Column.ValueType == typeof(int) || e.Column.ValueType == typeof(long) || e.Column.ValueType == typ... 阅读全文
posted @ 2014-03-14 10:44 z5337 阅读(581) 评论(0) 推荐(0) 编辑