I have a gridview that pulls from an sqldatasource, this sql datasource pulls from a table called survey, lets say that this survey table has : survey_id, survey_name, survey_description, and category_id. The category ID is a foreign key referring to a category table. the category table has category_id, name and description. Is there a way i can replace the category_id in the gridview and take instead the name where its ID is equal to the ID in the survey table?
I have a gridview that pulls from an sqldatasource, this sql datasource pulls from
Share
Yes, you can! You will need to change the SelectCommand for your SQLDataSource so that you are inner joining on the category table. You can then select the name from the category table, and bind it to the gridview.