插入或删除单行并在Datagridview中刷新该行 [英] Insert Or Delete Single Row And Refresh Just That Row In Datagridview
本文介绍了插入或删除单行并在Datagridview中刷新该行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的datagridview中有10000行,现在当我插入时,删除其中一行,我应该使用我编写的选择存储过程刷新所有行.
您如何建议我刷新(选择)该行?
TIA
I have 10000 rows in my datagridview,now when i insert,delete one of the rows,i should refresh all the rows with select stored procedure that i wrote.
How do you suggest to me to refresh(select) just that row?
TIA
推荐答案
据我所知.....
当控件是数据绑定的时,不能将行以编程方式添加到DataGridView的行集合中.
除非将DataGridView数据绑定到支持更改通知并允许删除的IBindingList,否则不能以编程方式删除行.
As far as I know.....
Rows cannot be programmatically added to the DataGridView''s rows collection when the control is data-bound.
Rows cannot be programmatically removed unless the DataGridView is data-bound to an IBindingList that supports change notification and allows deletion.
这篇关于插入或删除单行并在Datagridview中刷新该行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文