By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,687 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,687 IT Pros & Developers. It's quick & easy.

Displaying configuarion data from text file or database

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
"Macca" wrote:
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

Nov 17 '05 #2

P: n/a
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.

Macca wrote:
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

Nov 17 '05 #3

P: n/a
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

"Macca" <as****@dsl.pipex.com> wrote in message
news:I9********************@pipex.net...
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

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.