Click here to Skip to main content
13,087,566 members (93,200 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi guys, i have been hitting my head on the desk trying to figure this out, i have a table [EmployeeInfo] that contains all the employee information [like firstnae, lastname, middlename and dob] of the employee. What i want to do is display a gridview that will be having 5 column. The first column will be the EmployeeId, second column will be the concatenation of the employee's [firstname lastname and middle name], the third column will be the employee nationality and the last two will be a column that displays an image that represent [update] and [delete].

Any clue on how to go about this.

Posted 25-Feb-13 22:38pm

1 solution

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

Solution 1


try this query,

Select EmployeeID as EmployeeID, FirstName + ' ' + LastName + ' ' + MiddleName as Name, Nationality from EmployeeInfo

Make sure whether firstname, lastname and middlename should varchar,char,nvarchar etc., should not numeric types.

ahmedfaruk88 26-Feb-13 5:33am
Thank you very much Prakash.
ahmedfaruk88 26-Feb-13 6:48am
Really sky is not the limit when it comes to learning. Please any reference to where i can get a guide on how to replace the insert, update and delete in a gridview with an image
Prakash Thirumoorthy 26-Feb-13 7:05am
have u used ajax ?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
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