The SqlDataSource is a design view control for convenience sake designed to ease the creation of quick forms that can insert, update and delete data rows. Because it is only designed to handle insert, update and delete commands, it is not a good choice for creating a view. You should look into the ADO.NET classes available, such as SqlConnection, SqlCommand, etc. Just make a new SqlCommand and set the CommandText to your T-SQL code that creates the view.
|