📜  c# datagridview rows clear not working - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:55.636000             🧑  作者: Mango

代码示例2
// If "dataGridView1.Rows.Clear();" Not work Use the Following
do
{
   foreach (DataGridViewRow row in dataGridViewError.Rows)
   {
      try
      {
        dataGridViewError.Rows.Remove(row);
      }
      catch (Exception) { }
   }
} while (dat