I want to import data from a text file and to display it in a data grid. The text file is delimited.The first row contains column headers and the rest contains the data for respective columns.
There is column delimiters and row delimiters are present in text file.I want to display the data in a data grid in which header will be the column name and all the data will be display under each column.
I have successfully taken the data from the file. The problem is the file may different for each time and the number of columns may vary. So I
can not use a predefined class for it.I wanted to
create a class for run time and add the properties at run time and to display the list to data grid. How can I complete this task ?