title: How to display the count in datagridview using windows forms
body: <p>In my application i am displaying the messages if file is uploaded successfully and at the same time i am displaying the message that it is not uploaded in a message box.</p>
  
  <p>The problem is i need to click ok button in message box each and every time when the message occours. Suppose if 40 files are not inserted i need to click ok button for 40 times. I need to display the files which are inserted and which are not inserted at a time in a datagridview. how can i do this.</p>
  
  <pre><code>if (ErrorMessage == 0)
  {
      Ffname += path + "-" + "Uploaded successfully" + "\n";
  }
  else
  {
       NotInsFiles += path + " - " + "Not Inserted" + "\n";
  }
  lbluplodedfile.Text = TabNotIns;
  if (Ffname != null || Ffname != "")
  {
      MessageBox.Show(Ffname);
      lbluplodedfile.Text = Ffname;
  }
  else
  {
      MessageBox.Show(NotInsFiles);
  }
  </code></pre>