title: Progressbar for loading data to DataGridView using DataTable
body: <p>I have a <code>DataGridView</code> in which I load data from a SQL server database. When I load the data it takes quite long time.</p>
  
  <p>I would like to give user information that the data is loading. May I ask you what is the best way connecting <code>Progressbar</code> when data is loading into the <code>DataGridView</code>?</p>
  
  <p>I don't want anyone to make a fully working code for me. I just would like to know how it can be done.</p>
  
  <p>I see someone awarded my question with bounty. I would like to say that at the moment Iam using this code which I would appriciate if it would fit.</p>
  
  <pre><code>DTGdataTable = new DataTable();
  SqlDataAdapter SDA = new SqlDataAdapter
  SDA.Fill(DTGdataTable);
  dataGridView1.DataSource = DTGdataTable ;
  </code></pre>
  
  <p>Thank you everyone for your time.</p>