I am trying to import a logfile and display it in a listview in a grid format ( much like excel ). I am wondering what may be the best approach to take with this. Filereader and a data table possibly ? I have not programmed anything like this before. This is a windows form project.
Any advice on the issue would be a great help.
EDIT2:
Example of the logfile:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
i d = 1 0 0 1
P a r a m e t e r 1 = E N A B L E D
P a r a m e t e r 2 = D I S A B L E D
P a r a m e t e r 3 = N U L L
P a r a m e t e r 4 = N U L L
P a r a m e t e r 5 = S U C C E S S
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
This the repeats with different Data.
I would like this to be read in and displayed in a listview under the different headings id, name etc
This application is limited to the use of .NET 3.5 also.
My best guess would be to read your file in one line at a time using a StreamReader and placing the data in a DataGridView.
Edit: The following code works for me on a project targeted to .Net 2.0 and assumes the name of your DataGridView is dataGridView1