| Author: Anand 05 Jul 2008 | Member Level: Bronze | Rating: Points: 4 |
After reading from the CSV file it will be in the Array. Split each array index by ',' and the those separate strings[] that u get will be the field that are to be in the datatable. Initialize the datatable with the corresponding columns. Take 2 for loops then Add those values to the datatable. Ex: dt.Rows.Add(Colunm1,Colunm2,...);
|