Consider using 2 components:
Find both those in your webpage's Design view toolbox. Double click each to have them show up on your webform.
Your SQLDataSource will ask your for "SELECT" command. Paste in any SELECT statement, and you can preview the results. Better yet, create a stored procedure in SQL Server, and use it instead of an ad-hoc SQL statement.
Your GridView will, by default, have AutoGenerateColumns=True
. This will ensure that your resultset from your SQLDataSource will have the columns named exactly on the GridView.
This article has some guidance and instructions: GridView control in ASP.NET