title: VB.NET 2008: Import CSV & Extract Only Certain Named Columns
body: <p>I'm using VB.NET 2008 and what I'm trying to do is very simple, yet I can't seem to figure it out.  </p>
  
  <p>I have an CSV file with around 200 columns and 50,000 rows that has the column headers in the first row.  I need to read this file and export three named columns (Sample ID No, Analysis Date, P Count) to a tab delimited .TXT file.  The columns may be in different orders depending on the machine that creates the original CSV, so I definitely need it to be exported by named column.    </p>
  
  <p>I can do this all day in console C with my eyes closed; however, my boss knows that I'm leaving in a few months and is asking that I do this in VB.NET so another guy can make tweaks in the future.   I've spent several days looking through this site and others trying to find a solution.  I've managed to get the CSV into a DataGridView (albeit without column headers, ugh), but I can't figure out how to get a data out of these.   I'm just not used to this OOP stuff to be honest.    If anyone would be willing to assist with this or even steer me in the right direction, I would be very grateful.  </p>