摘要: 将datatable绑定到gridcontrol中后,编辑表格中的数据后,保存时总是丢失最后编辑的一行数据,困惑了很久,今天终于解决了。其实很简单 grid1.FocusedView.CloseEditor(); grid1.FocusedView.UpdateCurrentRow(); 为什么这里 阅读全文
posted @ 2020-12-07 08:16 379245847 阅读(181) 评论(0) 推荐(0)
摘要: 将datatable绑定到gridcontrol中后,编辑表格中的数据后,保存时总是丢失最后编辑的一行数据,困惑了很久,今天终于解决了。其实很简单 grid1.FocusedView.CloseEditor(); grid1.FocusedView.UpdateCurrentRow(); 为什么这里 阅读全文
posted @ 2020-12-05 20:36 379245847 阅读(83) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/xiao__gui/article/details/7937781 阅读全文
posted @ 2020-12-05 15:50 379245847 阅读(46) 评论(0) 推荐(0)
摘要: 1、Run Designer 2、OptionsSelection->MultiSelect=true 3、OptionsSelection->MultiSelectMode=CheckBoxRowSelect 4、代码中如何获取选中的行: int[] SelectRows = gridView1. 阅读全文
posted @ 2020-12-05 14:35 379245847 阅读(529) 评论(0) 推荐(0)