Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# datagridview rows clear not working

// 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
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #datagridview #rows #clear #working
ADD COMMENT
Topic
Name
3+8 =