title: DevExpress Grid view Query - DataSource property set to DataTable but showing incorrect number of Columns
body: <p>I have a DataTable  which I use to bind to the my DevExpress GridView .</p>
  
  <p>My DataTable is dynamic ie - sometimes it can bring 4 columns sometimes even 20. The problem is that when i first time set my GridView with the dataTable which has ,say ,at that time 20 columns, it will display properly , next time if my DataTable has only 4 columns, my GirdView will still Display all the 20 Columns with values in only the 4 columns which my DataTable has at that time. </p>
  
  <p>How can I resolve this issue ? </p>
  
  <p>Attached is ScreenShot.<img src="https://i.stack.imgur.com/Ft2YB.jpg" alt="enter image description here"> </p>
  
  <p>It is something to do with the clear of some memory instance / disposing off an object ? If so please help with the API for the DevExpress GridView. </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>this code calls set the datasource</p>
  
  <pre><code>bindingSource1.DataSource = dtBindToGridView; // MyDataTable
  gcAnalysisTaskPermission.DataSource = bindingSource1; //My GridView 
  bindingSource1.ResetBindings(true); // Reset the BindingSource
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Mangesh</p>