title: Slow DataGridView drawing using a List<> as DataSource in C#
body: <p>I have been reading about Data Grid View slow drawing issues here, but I can't find a solution, so I will try to share a clear sample of my code, and a time measurement (More than 6 seconds...). </p>
  
  <p>I'm using DoubleBuffer and VirtualMode on a i7 CPU, 16Gb RAM, 2Gb GPU and the drawing time is the same. I have a List&lt;> (About 10.000 elements of simple structs) and I'm using it as DataSource for a DataGridView, here the code:</p>
  
  <pre><code>this.Cursor = Cursors.WaitCursor;
  
  this.dataGridViewList = this.completeList.FindAll (
      r =&gt; r.code &gt;= 0
  );
  
  this.myDataGridView.AutoGenerateColumns = false;
  this.myDataGridView.DataSource = this.dataGridViewList;
  this.myDataGridView.ClearSelection();
  
  this.Cursor = Cursors.Default;
  </code></pre>
  
  <p>And here is the time, it is really really slow, the List&lt;> is not the problem, it can be sort in miliseconds, I'm sure the problem is the DataGridView refill or drawing.</p>
  
  <p><img src="https://i.stack.imgur.com/Oa97B.jpg" alt="My error"></p>