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

标题: C# Row associated with the currency manager's position cannot be made invisible [打印本页]

作者: 资讯王    时间: 2011-10-14 23:12
标题: C# Row associated with the currency manager's position cannot be made invisible
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. }
复制代码





欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/) Powered by Discuz! X3.3