选择一行DGV [英] select one row of DGV
本文介绍了选择一行DGV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何随机选择一行数据gridview而不显示另一行.
how random select one row of data gridview and don''t show another rows .
the dgv connected to the sql DB.
推荐答案
DataGridViewRow
具有一个名为Visible
的属性.您是否尝试将其设置为false?如果您遇到任何与货币管理器相关的错误,请执行以下操作:
您将需要为DataGridView调用CurrencyManager的SuspendBinding
方法,然后将行的可见性设置为false.
DataGridViewRow
has a property calledVisible
. Did you tried setting it to false? If you get any currency manager related error then do this:
You will need to call theSuspendBinding
method of the CurrencyManager for your DataGridView and then set the visibility of the rows to false.
这篇关于选择一行DGV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文