title: C# Insert ArrayList in DataRow
body: <p>I want to insert an arraylist in Datarow.</p>
  
  <p>using this code,</p>
  
  <pre><code>      ArrayList array=new ArrayList();
        foreach (string s in array) 
        {
             valuesdata.Rows.Add(s);
        }
  </code></pre>
  
  <p>But My datatable must have only one datarow. My code created eight datarows.
  I tried,</p>
  
  <pre><code>valuesdata.Rows.Add(array);
  </code></pre>
  
  <p>But it doesn't work.That should be </p>
  
  <pre><code>valuesdata.Rows.Add(array[0],array[1],array[2],array[3]....);
  </code></pre>
  
  <p>How can I solve this problem?</p>
  
  <p>Thanks.</p>