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

 找回密码
 注册
搜索

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

[复制链接]
发表于 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-18 10:55 , Processed in 0.052193 second(s), 14 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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