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

appending columns in a dataset

Hi,

is it possible for two columns to be appended from a dataset and bound to a
dropdownlist.
for example: I want to append firstName and lastName like this
ddName = ds.tables(0).Columns("FirstName") & "-" &
ds.tables(0).Columns("LastName")

but it displays an error.

Thanks,
Stephen
Nov 19 '05 #1
3 1033
When you make the query string you do that
select id,firstname + ' ' + lastname

"Stephen Noronha" <st********@hotmail.com> escreveu na mensagem
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

is it possible for two columns to be appended from a dataset and bound to
a
dropdownlist.
for example: I want to append firstName and lastName like this
ddName = ds.tables(0).Columns("FirstName") & "-" &
ds.tables(0).Columns("LastName")

but it displays an error.

Thanks,
Stephen

Nov 19 '05 #2
http://msdn.microsoft.com/library/de...ta05312002.asp

HTH

Trevor Benedict R
MCSD

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

is it possible for two columns to be appended from a dataset and bound to
a
dropdownlist.
for example: I want to append firstName and lastName like this
ddName = ds.tables(0).Columns("FirstName") & "-" &
ds.tables(0).Columns("LastName")

but it displays an error.

Thanks,
Stephen

Nov 19 '05 #3
Thanks,
Stephen

"Trevor Benedict R" <tr********@yahoo.com> wrote in message
news:uF**************@TK2MSFTNGP09.phx.gbl...
http://msdn.microsoft.com/library/de...ta05312002.asp
HTH

Trevor Benedict R
MCSD

"Stephen Noronha" <st********@hotmail.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

is it possible for two columns to be appended from a dataset and bound to a
dropdownlist.
for example: I want to append firstName and lastName like this
ddName = ds.tables(0).Columns("FirstName") & "-" &
ds.tables(0).Columns("LastName")

but it displays an error.

Thanks,
Stephen


Nov 19 '05 #4

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

Similar topics

2
by: Andreas Palm | last post by:
I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: Wing | last post by:
Hi all, I am using Microsoft Visual Studio .NET 2003 to program my code. I have following question. I am trying to adding a few bound columns which from a dataset that containing 2 tables to...
2
by: tony.collings | last post by:
I started a thread here : http://groups.google.co.uk/group/microsoft.public.cmserver.general/browse_thread/thread/29d63077144004a9/c3888efdcb7338f6?hl=en#c3888efdcb7338f6 About creating an Email...
2
by: Kjetil Klaussen | last post by:
Hi, I’m having some troubles trying to bind my dataset to a GridView control through an ObjectDataSource control. The binding works fine for regular columns in my dataset, but I can’t seem...
3
by: BartMan | last post by:
Greetings, I have a gridview which is sitting on a multi view control (witin a view), and it is bound to a dataset which I dynamically apply to the control within asp.net page. The problem is...
1
by: markliam | last post by:
Is there a a quick way of appending a dataset to an XML file, or does the XML file need to be read into a new dataset and then re-saved with a new dataset containing both old/new data?
3
by: ASPnewb1 | last post by:
I am currently filling a dataTable then adding this table to a dataset, setting the dataset to the Gridview's datasource. If I set the Gridview to generate columns automatically it will fill the...
1
by: Mark Baldwin | last post by:
Steven Thanks for your reply, however the typed datasets are defined in the web service and there seems to way to open the partial class code window - double clicking on the design surface does...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
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...

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.