473,406 Members | 2,217 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,406 software developers and data experts.

table column change

gs
How do I quickly make a c# windows project adapt to sql table columns change
such as length quickly?

I am using datagridview and detailview. I am not dealing with asp.net

I have to manually clean the solution, edit the corresponding .xsd
maxlength, two times per columns, rebuild.that gets a bit tedious
Dec 19 '07 #1
4 1714
Well, can't you delete the data table and then re-add it from the data
explorer?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
How do I quickly make a c# windows project adapt to sql table columns
change such as length quickly?

I am using datagridview and detailview. I am not dealing with asp.net

I have to manually clean the solution, edit the corresponding .xsd
maxlength, two times per columns, rebuild.that gets a bit tedious

Dec 19 '07 #2
gs
thank you for quick response.

if I do that, will it cause any loss of the customization in the controls in
the associated with the table?

If not, surely I will try that next time around
also what do you mean delete the table? do you mean that I go to
datasourcees while I have the project open, select the table and delete the
table?

I also just notice the right click menu for table has a choice of refresh.
I think I give that a try next time before taking the delete action

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP02.phx.gbl...
Well, can't you delete the data table and then re-add it from the data
explorer?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
>How do I quickly make a c# windows project adapt to sql table columns
change such as length quickly?

I am using datagridview and detailview. I am not dealing with asp.net

I have to manually clean the solution, edit the corresponding .xsd
maxlength, two times per columns, rebuild.that gets a bit tedious


Dec 19 '07 #3
Well, if you customize controls that are bound to the table, deleting
the table from the data set designer shouldn't affect those controls.
Unless you customized the designer code, then you shouldn't have an issue.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
thank you for quick response.

if I do that, will it cause any loss of the customization in the controls
in the associated with the table?

If not, surely I will try that next time around
also what do you mean delete the table? do you mean that I go to
datasourcees while I have the project open, select the table and delete
the table?

I also just notice the right click menu for table has a choice of refresh.
I think I give that a try next time before taking the delete action

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:%2****************@TK2MSFTNGP02.phx.gbl...
> Well, can't you delete the data table and then re-add it from the data
explorer?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
>>How do I quickly make a c# windows project adapt to sql table columns
change such as length quickly?

I am using datagridview and detailview. I am not dealing with asp.net

I have to manually clean the solution, edit the corresponding .xsd
maxlength, two times per columns, rebuild.that gets a bit tedious



Dec 20 '07 #4
GS
thank you very much.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:eu**************@TK2MSFTNGP03.phx.gbl...
Well, if you customize controls that are bound to the table, deleting
the table from the data set designer shouldn't affect those controls.
Unless you customized the designer code, then you shouldn't have an issue.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
thank you for quick response.

if I do that, will it cause any loss of the customization in the
controls
in the associated with the table?

If not, surely I will try that next time around
also what do you mean delete the table? do you mean that I go to
datasourcees while I have the project open, select the table and delete
the table?

I also just notice the right click menu for table has a choice of
refresh.
I think I give that a try next time before taking the delete action

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Well, can't you delete the data table and then re-add it from the
data
explorer?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gs" <gs@dontMail.teluswrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
How do I quickly make a c# windows project adapt to sql table columns
change such as length quickly?

I am using datagridview and detailview. I am not dealing with
asp.net
>>
I have to manually clean the solution, edit the corresponding .xsd
maxlength, two times per columns, rebuild.that gets a bit tedious


Dec 20 '07 #5

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

Similar topics

1
by: Bruce | last post by:
Hi, I want to change the datatype of an existing column from char to varbinary. When I run the "Alter Table" statement, I get the following error message - Disallowed implicit conversion...
4
by: mokles | last post by:
Hi All, I am trying to change column name on an existing table. I am using SQL Server 7. As the table is quite big, it is taking quite long time to do it. By the way I could change the column...
4
by: Harlan Messinger | last post by:
I've had this in the back of my head for a while. Take a look at Example 1 on http://gavelcade.com/table.html There are three levels of column headings. All table accessibility discussions...
6
by: Claudia Fong | last post by:
Hello, I'm using the sql statement below to create a new table from an old one. But I found a little problem with that. In my old table DEP2004, I have one field's property allow zero length...
4
by: Hought, Todd | last post by:
I have a bit of a dilemma, I'm fairly new to PG, and not quite sure how to do this: I have a DB that has been basically 'forked' - a copy of the original was made for a handful of users to play...
12
by: Prabu Subroto | last post by:
Dear my friends... I am using postgres 7.4 and SuSE 9.1. I want to use auto_increment as on MySQL. I look up the documentation on www.postgres.com and I found "serial" . But I don't know...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
7
by: Serge Rielau | last post by:
Hi all, Following Ian's passionate postings on problems with ALTOBJ and the alter table wizard in the control center I'll try to explain how to use ALTOBJ with this thread. I'm not going to get...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
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: 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
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
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
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...
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
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,...
0
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...

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.