Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

Thanks
Posted

1 solution

hi,


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.


Regards,
Prakash.T
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900