title: how to set datarow to String array?
body: <p>I have a datatable on which I am applying <strong>Select()</strong> method. After that I want to get the result into an array of  String. I have tried the following code but it is not working.
  Please let me know the exact solutions for this.</p>
  
  <pre><code> DataTable dtget = HttpContext.Current.Cache["Hello"] as DataTable; 
      string sqlFilter = "Securityid = '" + CommonClass.Encryptdata(txtSecurity.Text) + "'";
      DataRow[] dr = dtget.Select(sqlFilter);
      if (dr.Length &gt; 0)
      {
          String[] Con;
          for (int i = 0; i &lt;= dr.Length; i++)
          {
              dr[i] = dr[i].ToString();
  
          }
      }
  </code></pre>