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

Renaming a Dataset

HI,
i have created a DataSet using the DataSet Designer. The default name
is DataSet1.
I then renamed this to "MyDataSet" and proceed to add my TableAdapters
using the Visual Designer. After i am done and i look at the classes
generated, i noticed that they still have the name and namespace
"DataSet1". Why is it that this name did not change?

I attempted to refactor the code to change the name, but VS warns that
this should be done using the Visual Designer. It asks me if i wish to
continue with the refactoring, to which i respond 'yes'. this changes
everything to the desired name. HOWEVER, if i now go back into the
Visual Designer and make changes to the MyDataSet and save, the
classes/namespace are all then renamed back to DataSet1.

How can i resolved this?

Also, i am curious, do most asp.net developers use the visual designer
to create their middle tier data access layer, or do you do it from
scratch? It looks like the visual designer saves a lot of work.
However, i still findt hat the gridview is not flexible enough for my
use and i end up having to write my own rendering using tables. That
may be because i am not well versed in using the GridView however (i
was trying to do groupings, where one row would list the group,
followed by child rows listing the details).

thanks much for your assistance and comment

Aug 12 '06 #1
1 2086
In .NET 2.0, renaming in the solution explorer works for most objects. If
you are still having an issue, check the underlying language files (.cs or
..vb in most instances) and see if the underlying class name changed. If not,
change it and make sure the reference changes to the proper code behind
file.

Another option is to rename and then right click the file and regenerate the
code behind files.

Hope this helps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"farseer" <fa*****@optonline.netwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
HI,
i have created a DataSet using the DataSet Designer. The default name
is DataSet1.
I then renamed this to "MyDataSet" and proceed to add my TableAdapters
using the Visual Designer. After i am done and i look at the classes
generated, i noticed that they still have the name and namespace
"DataSet1". Why is it that this name did not change?

I attempted to refactor the code to change the name, but VS warns that
this should be done using the Visual Designer. It asks me if i wish to
continue with the refactoring, to which i respond 'yes'. this changes
everything to the desired name. HOWEVER, if i now go back into the
Visual Designer and make changes to the MyDataSet and save, the
classes/namespace are all then renamed back to DataSet1.

How can i resolved this?

Also, i am curious, do most asp.net developers use the visual designer
to create their middle tier data access layer, or do you do it from
scratch? It looks like the visual designer saves a lot of work.
However, i still findt hat the gridview is not flexible enough for my
use and i end up having to write my own rendering using tables. That
may be because i am not well versed in using the GridView however (i
was trying to do groupings, where one row would list the group,
followed by child rows listing the details).

thanks much for your assistance and comment

Aug 12 '06 #2

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

Similar topics

9
by: peter | last post by:
Hello all, Recently I've started to refactor my code ...(I'm using python 2.3.4) I tried to add extra functionality to old functions non-intrusively. When I used a construct, which involves...
5
by: Adam Barr | last post by:
I have a tag foo that I want to copy unchanged when it is a subtag of bar, so I have a template (x is the namespace for the document): <xsl:template match="x:bar/x:foo"> <xsl:copy>...
0
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
0
by: Andy | last post by:
Hello: I am using System.Web.Mail.MailMessage. Currently: when I am attaching a file to the object, I am renaming the file using the FileInfo.Copy method and attaching the new file to the...
2
by: cloudx | last post by:
Hi there, it is driving me crazy. Aftering renaming app.config the following code I always get null on myApp. It works if I keep the name app.config. Why? string myApp =...
1
by: Jason B | last post by:
Hello, I have been trying to figure out how to rename my IIS directories and still have the project be able to run through VS. I have renamed the directories listed in the csproj.webinfo file and...
2
by: Brett Romero | last post by:
What is the best way for renaming a project (including namespace) that also has its tree structure as the project name in VSS? This project (DLL) is referenced by a couple of other projects in...
8
by: BillCo | last post by:
I'm updating a legacy app with table naming that makes baby jesus cry. It's a bit of a spider web though... no telling when and where the tables will be called by name. So I wrote this for renaming...
2
by: Johnny Jörgensen | last post by:
Is there any way of renaming the properties of standard controls. I want to create a TextBox control inherited from a normal textbox control, but I want to use the property for something else....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.