随笔 - 54  文章 - 1  评论 - 407  阅读 - 15万
09 2011 档案
使用BindingList来实现DataGridview数据源为list时的动态增删改
摘要:当DataGridview的数据源list的时候,对list进行操作后重新绑定,数据并不会更新使用BindingList能很好的解决这个问题(framework2.0新增)例如,使用list时候的代码 /// <summary> /// 性别类型维护 /// </summary> public partial class SexFrm : Form { IList<SystemCode> list; private void BindData() { list =new Syste... 阅读全文
posted @ 2011-09-08 17:30 火星大能猫 阅读(12248) 评论(1) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示