Displaying configuarion data from text file or database

  • Thread starter Thread starter Macca
  • Start date Start date
M

Macca

Hi,

I am writing a C# application that needs a lot of calibration data.

In a previous C++ application, i used a text file which displayed the
various calibration data, between 25 and 40 different items and allowed the
user to add/delete/change items.

The user changed these setting through notepad.

For this application i can either do the same as above or possibly do it
using a database to store the settings and displaying them using the C# GUI
controls.

I'd appreciate any help on which C#/.NET controls would be best to display a
large amount of data items and also allow the user to add/delete new data
items.

Thanks In Advance
Macca
 
Chances are... a DataGrid would be your best bet for displaying and a DataSet
(or perhaps at a minimum, a single DataTable) for internal storage.

Brendan
 
You could look at creating a serializable configuration class, whose
properties can be edited with PropertyGrid. Then serialized to and from
disk to save\load settings. Encrypt to prevent notepad mucking about.
 
Hi Macca,

Some pointers to the way I do things:-

Store the data as XML fomat.

Read/Write direct to a DataSet.

Display with possibly a DataGrid for list/select, with another form for
add/delete/edit individual items.

Regards,

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top