日期:2014-05-17  浏览次数:20783 次

为什么BindingSource.AllowRemove属性是只读的呢?
BindingSource.AllowRemove 属性:http://msdn.microsoft.com/zh-cn/library/system.windows.forms.bindingsource.allowremove(v=vs.100).aspx


为什么BindingSource.AllowRemove属性是只读的呢?
不允许设置此属性,那要删除DataGridView控件中的行,怎么办呢?

------解决方案--------------------
探讨
那要删除DataGridView控件中的行,怎么办呢?

------解决方案--------------------
RowState
------解决方案--------------------
删除内存表里的行,并删除物理表的行,重新绑定BS(BindingSource)