In that case I think first row in csv file must be name of columns. So for that read csv file in the data table. Than create you dynamic table by looping through fist row of your data table and create one dynamic datatable in between that by comparing selected row. Than loop through other rows similar fashion and read whole file and insert data row in datatable created by you. I hope that this will work for you.