473,473 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Returning Typed DataSet - missing Row

Joe
Hi

I have a Typed Dataset (TDS) and am using the derived class. I wrote a
wrapper Class
around the TDS class to manipulate the class {Add,Delete, return Dataset
etc} - All is fine except when I add a record
If I step thru the code the record is added to the TDS but when I return a
reference to that TDS to the calling pgm
the row is missing

I see the new record when I kill the pgm and start up again because after I
add to the TDS I save to XML - but why when I return
the DataSet thru a Method the row is missing is escaping me

What am I missing here ???

Thanks

public class Engine

{

Schedule schedule; //My Typed DataSet Class

public void Init()

{

schedule = new Schedule();
}

public void AddRow(Schedule.TableRow dr)

{

//Add Row to DataTable and save to XML DB

schedule.MyTable.AddTableRow(dr);

Save();

}
public void Save()

{

schedule.AcceptChanges();

schedule.WriteXml(sXMLFile);

}

public DataSet DS() //If I Debug here the DataSet has the row
but the calling PGM doen not get the new row

{

return(schedule);

}

public DataTable GetMyTable() //If I Debug here the DataSet
has the row but the calling PGM doen not get the new row

{

return (schedule.MyTable);

}
}
Aug 25 '06 #1
0 1108

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

Similar topics

0
by: Natehop | last post by:
I've been attempting to design an n-tiered framework leveraging .NET's strongly typed Dataset. My Framework will serve as the foundation to several client apps from Windows applications to web...
1
by: John Chorlton | last post by:
I've been attempting to pass a chunk of data back from a child Windows form using public properties on the form and have been getting some odd errors. I wanted to return a row of data to avoid...
4
by: Dave Taylor | last post by:
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem...
3
by: Freeon | last post by:
Hi, I am looking for a way to sort a strong typed dataset. It would seem the most straightforward way is to use a dataview. The only problem is when I use the dataview I seem to loose the strong...
0
by: Alan | last post by:
I have successfully created DLL and registered. And run in webpage using VBScript. However, I have a method returning a typed dataset, do I need to do anything on DLL so that the VBScript can hold...
3
by: Mike | last post by:
Hi, I'm delevloping a webservice that returns typed datasets with visual studio 2005. The problem is, that the typed data set in the client app is not the same as in the webservice. If I change...
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
1
by: Mike | last post by:
Hi, I have a WCF service that works perfectly. I added a new function (returning typed Dataset) and now, my service doesn't work anymore. I got a lot of "CODEGEN" warning inside the proxy file...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.