I have in my Web a GridView that use SqlDatasource to insert data into the rows of the gridview.
the grid have for example: id name genre_id
now i have a table with songs and table with genres(genre_id,genre_name), and i want that in the grid will use genres_name and not the genres_id
This is the SqlDataSource for the GridView:
<asp:SqlDataSource ID="StationsDataSource" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:TvSQLManagerConnectionString %>"
SelectCommand="SELECT [id],[name],[genre] FROM songs ORDER BY [name]"
</asp:SqlDataSource>