Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
how to merge two columns in a single datatable and explain datatable customization..
thanks in advance
Posted 30-Apr-13 0:45am
Rabbil at 30-Apr-13 6:15am
expalin more about ur requirement....??
CHill60 at 30-Apr-13 6:43am
Your question is not clear. Please use the Improve question link to give further details of the problem you are experiencing
ryanb31 at 30-Apr-13 7:02am
Is this homework? If so, doesn't your text have the answer? If not please be more clear on what you need.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hi Swetha,
I hope this link would help you a bit.
Concatenating two string columns in a DataTable
CHill60 at 30-Apr-13 8:47am
My +5 ... I learned something new today. Thank you.
rk_prabakar at 30-Apr-13 8:49am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

In Select Statement you can do it Like that. if not Please Improve your Question
Select Column1 + ' ' + Column2 as NewColumn from table 
result would be like
Column1Text Column2Text

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 690
1 Maciej Los 280
2 Suvendu Shekhar Giri 229
3 Richard Deeming 195
4 Sascha Lefévre 164
0 Sergey Alexandrovich Kryukov 9,678
1 OriginalGriff 9,135
2 Peter Leow 5,082
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,606

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100