I am developing the Project where I have to read multiple CSV file and view in the DataGrid. Now here challenge is if there is 5 files I have to create 5 different tab to view in Datagrid which I am not able to do. Here is my code :
DataSet ds = new DataSet();
foreach (String file in openFileDialogCSVFilePath.FileNames)
{
string fileLocation = file;
string fileName = Path.GetFileName(@fileLocation);
CsvReader reader = new CsvReader(fileLocation);
ds = reader.RowEnumerator;
}
dGridCSVdata.DataSource = ds;
dGridCSVdata.DataMember = "The Data";
Can anybody help me how I can accomplish this? Thanks in advance.
UPDATE:
I want to create Tab pro grammatically.