标题: 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。
this.DataGridView.CurrentCell = null;
foreach (DataGridViewRow row in DataGridView.Rows)