Using C# and ASP.NET, I need my gridview to draw columns from multiple tables. How do I do this? I currently have
`SelectCommand="SELECT [SubId], [CustName], [CustCity] FROM [Customer]">
</asp:SqlDataSource>`
as my select statement, but I need to select from two more tables. What is the syntax?
apologies for being unclear before.
Your SelectCommand should be the same statement that you would execute if you were running the query on the database directly. So, in your case, you would want something like: