02 2012 档案

摘要:效果图:一.Form添加全局变量//这里的值是表格行头的初始宽度int rowHeaderWidth = 41;二.DataGridView添加事件 private void dgvReconcile_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { ChangeRowHeaderWidth(); } private void dgvReconcile_RowsAdded(object sender, DataGridViewRowsAd... 阅读全文
posted @ 2012-02-17 20:36 z.seven 阅读(1931) 评论(0) 推荐(1) 编辑
摘要:复选框单元格:View Code /// <summary> /// 表格控件單元格 /// </summary> public class DataGridViewDisableCheckBoxCell : DataGridViewCheckBoxCell { /// <summary> /// 指示單元格是否可用 /// </summary> public bool Enabled { get; set; } /// <sum... 阅读全文
posted @ 2012-02-15 09:25 z.seven 阅读(586) 评论(0) 推荐(0) 编辑
摘要:文本单元格View Code /// <summary> /// 表格文本单元格 /// </summary> public class DataGridViewColorTextBoxCell : DataGridViewTextBoxCell { /// <summary> /// 是否可用 /// </summary> public bool Enabled { get; set; } /// <summary> ... 阅读全文
posted @ 2012-02-15 09:24 z.seven 阅读(402) 评论(0) 推荐(0) 编辑
摘要:连接单元格:View Code public class DataGridViewColorLinkCell : DataGridViewLinkCell { /// <summary> /// 是否可见 /// </summary> public bool Display { get; set; } /// <summary> /// 头部边框颜色 /// </summary> public Color ... 阅读全文
posted @ 2012-02-15 09:20 z.seven 阅读(709) 评论(0) 推荐(0) 编辑
摘要:表头单元格:View Code /// <summary> /// 表格列头部单元格 /// </summary> public class DataGridViewColorColumnHeaderCell : DataGridViewColumnHeaderCell { /// <summary> /// 顶部边框颜色 /// </summary> public Color TopBorderColor { get; set; } ... 阅读全文
posted @ 2012-02-15 09:19 z.seven 阅读(2194) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示