2019年1月1日

摘要: 实现效果: 知识运用: DataGridViewCheckBoxColumn类 实现代码: 阅读全文

posted @ 2019-01-01 23:57 努力成长静待花开 阅读(474) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridView控件的DataSource属性 实现代码: 阅读全文

posted @ 2019-01-01 21:11 努力成长静待花开 阅读(3293) 评论(1) 推荐(0) 编辑

摘要: 实现效果: 实现代码: 阅读全文

posted @ 2019-01-01 20:38 努力成长静待花开 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridViewComboBoxColumn类 //通过该类可以创建下拉列表样式的列 实现代码: 阅读全文

posted @ 2019-01-01 18:49 努力成长静待花开 阅读(833) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridViewRow类的公共属性DefaultCellStyle的BackColor属性 public Color BackColor {get; set;} 实现代码: 阅读全文

posted @ 2019-01-01 18:34 努力成长静待花开 阅读(428) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridView控件的AllowUserToAddRows AllowUserDeleteRows和ReadOnly属性 实现代码: 阅读全文

posted @ 2019-01-01 15:33 努力成长静待花开 阅读(848) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridView控件公共属性DefaultCellStyle的WrapMode属性 public DataGridViewTriState WrapMode { get;set } 实现代码: 阅读全文

posted @ 2019-01-01 12:19 努力成长静待花开 阅读(372) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DataGridView控件的公共事件CellValidating //将System.Windows.Forms.DataGridViewCellValidatingEventArgs类的Cancel属性设为true 将阻止光标离开单元格 和CellEndEdit来处理 实 阅读全文

posted @ 2019-01-01 12:04 努力成长静待花开 阅读(853) 评论(0) 推荐(0) 编辑