2010-08-25 155 views

回答

1

你可以尝试这样的事情

YourDataGridView.CurrentCell = null; 
YourDataGridView.Rows[rowIndexToHide].Visible = false; 

第一行将CurrentCell设置为null,因为您可以隐藏选定的行。