Click here to Skip to main content
14,640,670 members
Rate this:
Please Sign up or sign in to vote.
See more:
i have gridview which is filled dynamically..in which two column firstName and lastName is there.i have to merge this two column and display as name..note that all data is come from database..
thank you in advance
Posted
Updated 2-Oct-12 8:13am
v2
Comments
Richard C Bishop 2-Oct-12 14:15pm
   
Go ahead and post the code you have so far so that we may have an understanding of what you have done so far.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You don't need to merge datagridview columns. You can achieve that using query:
SELECT firstName + ' ' + lastName AS [Customer]
FROM YourTable
   
Comments
Member 9334390 17-Oct-12 13:21pm
   
thanx..its working
Maciej Los 17-Oct-12 13:23pm
   
You're welcome ;)

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




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