徐胜利

导航

2012年8月25日 #

C#单独改变DataGridView按钮列中某个按钮的文本

摘要: 功 能:改变单个按钮的文本注意事项: 1, 将DataGridViewButtonColumn列属性UseColumnTextForButtonValue设为false,意为不用按钮Text属性来显示按钮文本; 2, 将DefaultCellStyle里面属性NullValue设置为按钮文本 3, 在DataGridView1里面CellClick事件里面添加如下代码 Private void DataGridView1_CellClick(Object sender,DataGridViewCellEventArgs e) { ... 阅读全文

posted @ 2012-08-25 10:53 xuvictory 阅读(3174) 评论(0) 推荐(0)