title: Binding Multiple Datagridview
body: <p>I am a newbie in C# so I don't know if I will address my problem correctly so please bear with me. I have 3 DataGridViews (<code>datagridview1</code>, <code>datagridview2</code>, <code>datagridview3</code>). All are located in the same window but they are in a different tab (I have a tab control).</p>
  
  <p>The purpose of each <code>DataGridView</code> is to display data for three tables from database. So every time I click a button, it retrieves data. But here is my problem, when <code>datagridview1</code> displays the data after clicking the button, then I go to the next tab and click again the retrieve button, the <code>datagridview2</code> shows the data that was displayed to <code>datagridview1</code>. Same thing to <code>datagridview3</code>.</p>
  
  <p>I'm using <code>DataTable</code> as the data source for those DataGridViews. And somewhere in my script the query will change so I think there's no problem with the query. What I found is that the <code>DataTable</code> does not clear it's data even when the query already changed.</p>
  
  <p>I'm using WinForms, please help me. Thanks.</p>
  
  <hr>
  
  <p>Here is the code I used in binding the datagridview to a datasource:</p>
  
  <p>currentdatagrid.DataSource = execute.InitConn2(query, CompleteTablename); </p>
  
  <h2>Note: "execute.InitConn2(query, CompleteTablename)" will return a datatable.</h2>