title: Datatable clearing in c#
body: <p>I get the message "Object reference not set to an instance of an object" when clearing a data table.</p>
  
  <pre><code>Ds.tables["table_name"].Clear();
  </code></pre>
  
  <p>The datatable exists and it contains data.</p>
  
  <p>Thanks for your help.</p>