What's the best way/control to use for this data problem?

  • Thread starter Thread starter vbMark
  • Start date Start date
V

vbMark

Greetings,

I have text files that have:
- one record per row.
- no header.
- no delimiters.

Columns are know by the number of characters per field.

For example:

3388br445bob smith 122332324

could be:
UserID - 4 chars
BlahID - 5 chars
FirstName - whatever chars
etc.

I am using C# express 2005 latest Beta/RC.

I am going to use the openFileDialog to indicate the
file to use

What is the best control to use for displaying the data
in proper columns?

Thanks!
 
Hi,

Well, your real problem is how to generate the columns to have them feed to
the control :)

The control can be anything , ListView , ListBox, Datagrid.

How to get the fields you have to interprete each line of the file, you need
to know the format and then use String.SubString to parse it.
Create a class with the columns of the files, or you could create a dataset
+ datatable and the latter will store the records.

cheers,
 
Back
Top