Has anyone been able to find a clean solution to display a foreign key value in a GridView using an EntityDataSource?
For example, my Employees table has a (FK)JobTitleID and I want the Employees GridView to display a Job Title column.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use bind the value to an TemplateField. Inside you can use whatever type of Bind control that is suitable for you type of data. Here is an example:
I have used
JobTitle.Namesupposing that theJobTitleIDis connected toJobTitleentity.