DataGridView的CellFormatting事件绑定判断
来源:互联网 发布:php接口开发书籍 编辑:程序博客网 时间:2024/06/06 19:58
摘自:http://www.cnblogs.com/jacky73/archive/2009/06/19/1506931.html
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e){ if (e.ColumnIndex == 1 /*绑定数据源中列的序号*/) { if (object.Equals(e.Value, 0)) { e.Value = "未完成"; e.CellStyle.ForeColor = Color.Red; } else { e.Value = "已完成"; e.CellStyle.ForeColor = Color.Green; } }}
- DataGridView的CellFormatting事件绑定判断
- DataGridView的事件CellForMatting的定位
- DataGridView CellForMatting事件 相当于GridView的RowBound
- DataGridView中CellFormatting事件的应用
- DataGridView.CellFormatting 事件
- 利用DataGridView 的 RowPostPaint 事件 和 CellFormatting 事件 对行划线
- 轉DataGridView的绑定
- dataGridView 的重新绑定
- DataGridView数据的绑定
- DataGridView的回车事件
- DataGridView动态的绑定数据
- DataReader 绑定DataGridView的方式
- DataReader 绑定DataGridView的方式
- DataGridView控件的数据绑定
- datagridview 绑定后的操作
- DataGridView绑定list的注意事项
- DataGridView绑定list的注意事项
- python对绑定事件的鼠标、按键的判断
- MFC模态对话框的消息循环
- SPOJ 7758 Growing Strings AC自动机DP
- Oracle闪回操作
- android按钮按键效果
- 翻页资源
- DataGridView的CellFormatting事件绑定判断
- C#与SQL数据库的链接
- java web从零单排第八期《struts2》与JavaBean的结合使用
- 计算机专用英语词汇1500词(三)
- Contacts联系人的电话号码字体大小的问题
- JAVA重写copyProperties,使其支持Map类型
- 【LoadRunner】查看脚本请求日志和服务器返回值方法
- 和图相关的智力题
- nginx,haproxy,lvs负载均衡的比较