首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

为啥BindingSource.AllowRemove属性是只读的呢

2012-10-29 
为什么BindingSource.AllowRemove属性是只读的呢?BindingSource.AllowRemove 属性:http://msdn.microsoft.

为什么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)

热点排行