大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

C# Row associated with the currency manager's position cannot be made invisible

[复制链接]
跳转到指定楼层
1#
发表于 2011-10-14 23:12:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Row associated with the currency manager's position cannot be made invisible.
这个错误是,因为你现在的row已经被highlight了,如果你需要把row隐藏起来,你必须先把CurrentCell=null。
  1. this.DataGridView.CurrentCell = null;
  2. foreach (DataGridViewRow row in DataGridView.Rows)
  3. {
  4.         row.Visible = true;
  5. }
复制代码

手机版|大马资讯论坛  

GMT+8, 2024-4-20 09:53 , Processed in 0.023143 second(s), 13 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表