473,513 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding a dataset

I have a project with the namespace "Rota" and added an XML file with the
second line( after the version and encoding) <Rota xmlns"Http\\....etc"/>. I
then created a schema and dragged a DataSet onto the main form of the
project. The pop up window offered me the name Rota.Rota, so accepted it.
It created a dataset object called rota1 in the component tray, but my
program doesn't recognise the name "Rota". I get the message "The name Rota
is not recognised in the namespace Rota.Rota. Are you missing a ref....etc."

What have I done wrong?

As you can probably imagine, I am VERY new to programming, so any help would
be much appreciated.
Nov 16 '05 #1
2 1097
Hi
Try to witch to code file and see the initialization of the dataset. give
it the full path . ie the namespace then the name of the class created for
your typed dataset.( under your xsd file you will find a CS file that
include the implementioan for your dataset ' I will dump an example at the
end of the post ) get the name of the class ( for that is the name that you
use for your instance )
So you call it private namespace_name. the_set_class_name myset ;
For example if you have a class named trail in namespace all then you will
have to define the dataset as
Private all.trial mydastset ;
Here you are what the class should look like
public class trial : DataSet { \\ it inhiret from dataset (and this is //
the name you need to use

private rowDataTable tablerow;

public xml() {
// it should be a reasnabaly long class…..
….
….
hope this was clear
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Thanks Mohamoss. Sorted it out now.

"Mohamoss" wrote:
Hi
Try to witch to code file and see the initialization of the dataset. give
it the full path . ie the namespace then the name of the class created for
your typed dataset.( under your xsd file you will find a CS file that
include the implementioan for your dataset ' I will dump an example at the
end of the post ) get the name of the class ( for that is the name that you
use for your instance )
So you call it private namespace_name. the_set_class_name myset ;
For example if you have a class named trail in namespace all then you will
have to define the dataset as
Private all.trial mydastset ;
Here you are what the class should look like
public class trial : DataSet { \\ it inhiret from dataset (and this is //
the name you need to use

private rowDataTable tablerow;

public xml() {
// it should be a reasnabaly long class…..
….
….
hope this was clear
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #3

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

Similar topics

10
3975
by: Eric Petruzzelli | last post by:
If I fill my dataset and there is no data. The dataset is still created with zero rows (all columns are there). When I add my first row using the script below, it takes over 2 seconds to add??? If...
0
1218
by: lgdev | last post by:
I am using a Dataset with two tables (Customer, Order) and adding a DataRelation object with Nested property set to True. I do not have a schema defined for the dataset. Calling GetXml results in...
4
5451
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
3
4858
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
10
2316
by: Trevor | last post by:
Hey, I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dndotnet/html/usingadonet.asp I can get everything to work up to...
16
2454
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
6
4400
by: Rudy | last post by:
Hi all, I know this is easy, just can't seem to get it. I have a windows form, and a text box, with a value already in it. I need to add that value to a table. It's just one value, so the entire...
6
2214
by: Mark | last post by:
I'm trying to add a table to a dataset but get the error: "A DataTable named 'BordDates0040' already belongs to this DataSet." Code: Dim dtBordDates As DataTable dtBordDates =...
0
1442
by: AboutJAV | last post by:
I created a crystal report with the report.rpt reportdata.xsd I created the a new dataset with the reportdata myreportdata = new reportdata(); That automatically created a new dataset...
1
2495
by: vbDavidC | last post by:
I am adding a new record to a table via a dataset/adapter. I have got the following to work for me but I am wondering if there is a better way to do this. I am having to have something in my...
0
7260
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
7161
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
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7101
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
7525
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
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
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.