title: If data set has rows?
body: <p>I have one more question</p>
  
  <p>I have this foreach statement:</p>
  
  <pre><code>foreach (DataRow dr_art_custsuply in ds.Tables["CustomerSupplier"].Rows)
  {
      //Podaci iz CustomerSupplier-a
  
      //Id dobavljača
      string cust_id;
      if (!dr_art_custsuply.Table.Columns.Contains("Id"))
          cust_id = "";
      else if (dr_art_custsuply["Id"].ToString().Length &lt;= 0)
          cust_id = "";
      else
          cust_id = dr_art_custsuply["Id"].ToString();
  
      //Naziv dobavljača
      string name;
      if (!dr_art_custsuply.Table.Columns.Contains("Name"))
          name = "";
      else if (dr_art_custsuply["Name"].ToString().Length &lt;= 0)
          name = "";
      else
          name = dr_art_custsuply["Name"].ToString();  
  
     //GLN
     string gln;
     if (!dr_art_custsuply.Table.Columns.Contains("GLN"))
          gln = "";
     else if (dr_art_custsuply["GLN"].ToString().Length &lt;= 0)
          gln = "";
     else
          gln = dr_art_custsuply["GLN"].ToString();
  }
  </code></pre>
  
  <p>What I want to do is to check if ds.Tables["CustomerSupplier"].Rows exists, if not skip this for each, is it's there go trough code, I tried this if </p>
  
  <pre><code>(!ds.Tables.Contains("CustomerSupplier"))
  {
  }
  </code></pre>
  
  <p>but I got an error, so help help, how to write it?</p>
  
  <p>Thanks!</p>