473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Displaying configuarion data from text file or database

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
3 1919
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
1
by: Yoshitha | last post by:
hi I have datalist control in my ASP.NET application the problem here is i have used a textbox with multiline true propertly when i enter data like "fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd...
2
by: john | last post by:
I am trying to create an xml page on the fly using asp.net with vb. I am currently reading data from my database into a dataset and then using the xmlwriter() to output it to the clients screen....
2
by: marvin | last post by:
Hi, I am trying to display images in a repeater from a SQL database and do some transformations on the image prior to displaying them (such as thumbnail with a shadow). The problem is I can't...
0
by: Fronky | last post by:
Hope someone can help. I am still learning, so no laughing please. I am displaying records from a database using Response.Write(""); instead of the usual datagrid method. I am doing it this way...
3
by: CLEAR-RCIC | last post by:
I have several images i want to display in an ASP.Net application. The images are being passed to me in binary format from another application. Is there a good way to write them directly to an...
13
by: David W. Fenton | last post by:
I've been struggling the last two days with something I thought was very easy, which is to open a web page with a form on it and populate the form with data passed in a query string (either POST or...
14
by: ashraf02 | last post by:
i used a code from a website that allows you to display images. however everything works fine from storing the image to the database but it does not display the image. the following code is the...
11
by: dba | last post by:
Have been displaying data from database using html for some time but just recently trying to display data back to "form". Can't find answer. <form method="post" action="<?php echo $PHP_SELF;?>">...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.