title: Columns limitations on DataTable
body: <p>I'm trying to load a big csv file into a <code>DataTable</code>. The file contains about 2200 columns and 13K rows. </p>
  
  <p>I've create the <code>Datatable</code> but when I'm trying to add a row to that table nothing happens (neither exceptions nor errors, but the row doesn't appear in the <code>DataTable</code>). </p>
  
  <p>I've checked in debug that the row really had all the data and wasn't empty and saw the <code>DataTable</code> also had all the columns in it - seems that the <code>DataTable</code> add function doesn't work. I tried deleting columns from the csv file and found out that it all worked well when there were about 800 columns. </p>
  
  <p>According to the MSDN documentation there is a row limitation of 16,777,216 - I wasn't even closed to that, but I haven't seen any columns limitations.</p>
  
  <p>Anyone has seen this problem before? Why the add function doesn't work when there are more than 2k columns? Is it really a columns limitation for <code>DataTable</code> or there's something I'm doing wrong?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>DataTable dt = new DataTable();
  StreamReader reader= new StreamReader(filePath); 
  
  // first line contains the names of the columns                       
  string strFirstLine = reader.ReadLine();
  string strRow;
  string[] strColms = strFirstLine.Split(',');                
  
  foreach (string s in strColms)
  {
      dt.Columns.Add(s);
  }
  
  while (!reader.EndOfStream)
  {                                                
      strRow = reader.ReadLine();
      DataRow row = dt.NewRow();                                                
      row.ItemArray = strRow.Split(',');                        
      dt.Rows.Add(row); 
  }
  </code></pre>
  
  <p>p.s. tried using the <code>AcceptChanges</code> functions but it still doesn't work.</p>