|
@@ -22,4 +22,7 @@
|
|
|
|
|
|
3.导出Excel,这里使用NPOI,详细使用方法上网查
|
|
|
|
|
|
-4.DataGridView在CellValueChanged事件中修改数据源的值不会马上刷新到界面
|
|
|
+4.DataGridView在CellValueChanged事件中修改数据源的值不会马上刷新到界面
|
|
|
+ 对于CheckBox CellValueChanged事件并不会马上触发
|
|
|
+ 应该在CurrentCellDirtyStateChanged事件调用DataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit)接受修改,则会马上触发CellValueChanged事件
|
|
|
+ 在CellValueChanged事件中如果修改了数据源的值,需要调用DataGridView.Refresh() 重绘界面
|