473,396 Members | 1,707 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,396 software developers and data experts.

DataSet from XML - how to cache?

There are several options on my WinForms app where the user can change/add
or delete options - these settings are saved in an XML file. When the main
form opens, the XML file (and schema) is read into a dataset and the options
are displayed in the various controls. Pretty basic... but I am still
rather green...

My questions is this - when the user makes a change to one of the settings,
how to I modify the dataset and display the new data in the controls? Do I
create a new dataset in each method? That would seem inefficient as the
user could makes dozens of changes - each time creating a new dataset??

If I were using a persistent database, I suppose I'd simply modify rows with
a sql statement in each method. But the Dataset fills once (on form open)
and resides in memory - how do I read/write to that same Dataset from all
the various methods in my app? Do I need to cache the Dataset?

Thanks in advance.
Nov 12 '05 #1
0 1150

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomaz | last post by:
I would like to know a way to use the DataSet in a memory cache into a C# application. I only found examples in ASP.NET applications that they are not accepted in the C # application. I am...
3
by: martin | last post by:
Hi, I am storing a dataset in cache, which is happening fine. I can easily retrive it at postback from the cache, cast it to a dataset and reuse it. However I have specified that the cache...
3
by: Arthur Dzhelali | last post by:
Is there any way to cache dataset on one page and it will be accessible for one user? if you declare dataset shared it will stay on the server and page will be able reference to it on reload,...
5
by: Craig G | last post by:
im having my first play about with caching a dataset but seem to be having some problems in doing so!! basically i have a dataset which i add to the cache as follows Cache.Insert("myDS",...
14
by: Bihn | last post by:
I was reading about datareader which is said to be slimmer & faster then dataset. Since the datareader have to go fetching the dat from the database every time it need it, the data it gets then...
5
by: Andrew | last post by:
I insert into the cache: if (Cache == null) { Cache.Insert("testQuestion"+ i, ds.Tables); }
2
by: Lawrence Chang | last post by:
Hi My friends, Can I save dataset object to an application variable? I want all the customer use this dataset. and diffrent customer create diffrent dataview object from this dataset, so it...
12
by: Bishoy George | last post by:
I have a dataset called ds1 filled with 2 tables Employees and Customers from Northwind database. I have dropdownList called ddLastName with the following properties: ddLastName.DataSource =...
1
by: Scott M. Lyon | last post by:
Part of an application I'm working on needs to manipulate some XML data (in an XML file), by reading the data into a DataSet using the MyDataSet.ReadXML method, and then using MyDataSet.WriteXML to...
2
by: moondaddy | last post by:
I want to cache a dataset on a server via a web service. I was thinking of caching it in a session object and returning the session ID as a string in the web service back to the windows client. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.