title: c# check the empty or null value in all datatable values
body: <p>I have a <code>DataTable</code> and I initialize it like this:</p>
  
  <pre><code>dataTable = new DataTable();
  dataTable.Clear();
  for (int i = 0; i &lt; labels.Length; i++)
  {
      dataTable.Columns.Add(MyCSVReaderFinal.labels[i]);
  }
  return dataTable;
  </code></pre>
  
  <p>where <code>label</code> is array of string like this:</p>
  
  <pre><code>private static string[] labels = { "FARM ID", "FARM OWNER ARABIC", "FARM NUMBER",
  "FARM MOBILE", "EMAR NAME ARABIC", "EMARA ID", "AREA NAME ARABIC", "AREA ID",
  "REGION NAME ARABIC", "REGION ID", "RECEIVING CENTER NAME ARABIC",
  "RECEIVING CENTER ID", "KHALAS", "FARDH", "OTHER LULU", "KHENAIZI", "BOUMAAN",
  "BARHI", "JESH KHARMA", "REZIZ", "JABRI", "ANBARET AL-MADINA", "SHISHI",
  "DABBAS", "NABTET SAIF", "KHEDRAWI", "HILALI", "MAKTOUMY", "NAMISHI",
  "SULTANAH", "BAQLAT AL-TAWAA", "BAQLAT AL-DAHLA", "BAQLAT AL-RARENJA", 
  "SUKARY", "SAQEI", "ABU ZEBED", "MAJDOUL", "SHABIBI", "YOUWANI", "YARDI",
  "KHADI", "HATIMI", "NEGHAL", "OTHER SAYER", "TOTAL FRUCTIFEROUS",
  "TOTAL UN FRUCTIFEROUS", "TOTAL AFHAL", "GENERAL TOTAL", "SENIOR SUPERVISORS",
  "ASSISTANT", "DATA ENTRY", "FARM ONWER OR BEHALF" };
  </code></pre>
  
  <p>I want to check the null of empty string of <strong>every</strong> value into that data table:</p>
  
  <p>I tried this:</p>
  
  <pre><code>for (int i = 0; i &lt; dt.Rows.Count; i++) {
      for (int j = 0; j &lt; dt.Columns.Count; j++) { 
          if(string.IsNullOrEmpty(dt.Rows[i].)){}
      }
  }
  </code></pre>
  
  <p>but as you see, I tried this: <code>dt.Rows[i].</code> but I didn't know how to get the value </p>
  
  <p>Could you help me please?</p>