473,406 Members | 2,713 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.

Problem Adding a Column in a DataGrid

I have a Datagrid I have created, it's datasource is an XML Dataset that I
have created. That form worked perfectly, until I had to add a column to
the table... I did it in my database, it shows up in my database, in my xml
dataset, and I even add the column to my datagrid, but now that new column
doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.
Nov 20 '05 #1
6 6800
Check SqlDataAdapter.SelectCommand.CommandText if CommandType is Text.
Check related stored-procedure if CommandType is StoredProcedure

Good luck

"Atley" wrote:
I have a Datagrid I have created, it's datasource is an XML Dataset that I
have created. That form worked perfectly, until I had to add a column to
the table... I did it in my database, it shows up in my database, in my xml
dataset, and I even add the column to my datagrid, but now that new column
doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.

Nov 20 '05 #2
Where do I find these properties?
"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:4A**********************************@microsof t.com...
Check SqlDataAdapter.SelectCommand.CommandText if CommandType is Text.
Check related stored-procedure if CommandType is StoredProcedure

Good luck

"Atley" wrote:
I have a Datagrid I have created, it's datasource is an XML Dataset that I have created. That form worked perfectly, until I had to add a column to the table... I did it in my database, it shows up in my database, in my xml dataset, and I even add the column to my datagrid, but now that new column doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.

Nov 20 '05 #3
How do you get data from database to fill into DataSet?
Can you paste your source code?

"Rulin Hong" wrote:
Check SqlDataAdapter.SelectCommand.CommandText if CommandType is Text.
Check related stored-procedure if CommandType is StoredProcedure

Good luck

"Atley" wrote:
I have a Datagrid I have created, it's datasource is an XML Dataset that I
have created. That form worked perfectly, until I had to add a column to
the table... I did it in my database, it shows up in my database, in my xml
dataset, and I even add the column to my datagrid, but now that new column
doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.

Nov 20 '05 #4
Hi Atley,

We are not all using the the same methods, I expect while reading this,
that you have created the dataset using the designer, while you have
probably as well done your SQL select string with that.

When my gues is right, than I give you the most change when you create that
selectstring againg using the AdapterWizard, right clicking on the adapter
below on your screen. And than not forget to regenerate the dataset as well
right clicking on the adapter to choose that.

Just a gues

I hope this helps?

Cor
I have a Datagrid I have created, it's datasource is an XML Dataset that I
have created. That form worked perfectly, until I had to add a column to
the table... I did it in my database, it shows up in my database, in my xml dataset, and I even add the column to my datagrid, but now that new column
doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.

Nov 20 '05 #5
Where do I find the AdapterWizard?

I used the DataForm Wizard...


"Cor Ligthert" <no**********@planet.nl> wrote in message
news:O0**************@TK2MSFTNGP11.phx.gbl...
Hi Atley,

We are not all using the the same methods, I expect while reading this,
that you have created the dataset using the designer, while you have
probably as well done your SQL select string with that.

When my gues is right, than I give you the most change when you create that selectstring againg using the AdapterWizard, right clicking on the adapter
below on your screen. And than not forget to regenerate the dataset as well right clicking on the adapter to choose that.

Just a gues

I hope this helps?

Cor
I have a Datagrid I have created, it's datasource is an XML Dataset that I have created. That form worked perfectly, until I had to add a column to the table... I did it in my database, it shows up in my database, in my

xml
dataset, and I even add the column to my datagrid, but now that new column doesn't retreive from the database or add new data to that column in the
table...

It seems like this one column is unbournd, even though I have mapped the
table field in the columnstyles...

What can I do!

Thanks in advance for any help.


Nov 20 '05 #6
Hi Atley,

Than there is a lot build automaticly however I would not know how to change
that in an easy way.

Maybe you can set a new message in this newsgroup and as well in these
newsgroups

microsoft.public.dotnet.framework.adonet
microsoft.public.dotnet.framework.windowforms
microsoft.public.dotnet.framework.windowforms.desi gntime

Crossposted what means one message with 4 newsgroups in the adres seperated
by a comma.
And tell that you are using the dataform (wizard)

I hope you find your solution.

Cor

Where do I find the AdapterWizard?

I used the DataForm Wizard...


"Cor Ligthert" <no**********@planet.nl> wrote in message
news:O0**************@TK2MSFTNGP11.phx.gbl...
Hi Atley,

We are not all using the the same methods, I expect while reading this,
that you have created the dataset using the designer, while you have
probably as well done your SQL select string with that.

When my gues is right, than I give you the most change when you create that
selectstring againg using the AdapterWizard, right clicking on the adapter
below on your screen. And than not forget to regenerate the dataset as

well
right clicking on the adapter to choose that.

Just a gues

I hope this helps?

Cor
I have a Datagrid I have created, it's datasource is an XML Dataset that I have created. That form worked perfectly, until I had to add a column to the table... I did it in my database, it shows up in my database, in
my
xml
dataset, and I even add the column to my datagrid, but now that new

column doesn't retreive from the database or add new data to that column in

the table...

It seems like this one column is unbournd, even though I have mapped the table field in the columnstyles...

What can I do!

Thanks in advance for any help.



Nov 20 '05 #7

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

Similar topics

4
by: Chris | last post by:
I think I must be going crazy. All I want to do is add a button to the bottom of a datagrid which will later run some code for a web based project. I've created a custom control that inherits from...
3
by: Robin Thomas | last post by:
I am fairly new to ASP.NET so I think I am missing something fundamental. Anyway, quite often I am pulling data from a database, but then I need to use that data to produce more data. A simple...
0
by: Chris | last post by:
Ok, I think this is an easy one - I've just been staring at it too long. I'm creating a datagrid in asp.net/c# from scratch, i.e. nothing at all in the aspx page. I'm also creating all the...
1
by: RN | last post by:
Hi. I used this article to add a template column to a datagrid that is entirely created with code: ...
1
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
6
by: Ron L | last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns...
1
by: thebison | last post by:
Hi all, I hope someone can help with this relatively simple problem. I am building a timesheet application using ASP.NET C# with Visual Studio 2003.As it is only a protoype application, my...
3
by: Gidi | last post by:
Hi, I've a dataGrid, and When I click with the mouse on one of it's header the DataGrid_Click event is called. I don't have problem with the event, but strange things happen to the dataGrid...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.