Accessing dataset schema + data from another class
<p>How can one access dataset schema + data between two classes in the same namespace? Please find below partial code:</p>

<pre><code>namespace X
{
 //Class A
 public partial class form1
 { 
   datacolumn dtcHDR;
   datarow dtrHDR;
 public void button1_click(object sender, Event arg)
    {
     //Two datatable in dataset ds
     //Fetch data from sql view into dataset datatables (Header and Line)
     //Relationship between Header and Line tables in ds
    }
  }
}

 //Class B
 public CreateJE
 {
  foreach (DataRow dtrHDR in ds.Tables["Header"].Rows)
  // How can I access dtrHDR for ds in Class A?
  // Code
 }
</code></pre>

<p>Thanks</p>
