This code sample illustrates how to bind a report to XML data stored in a file (Cars.xml in this case). To accomplish this task, create a SqlDataSource. Then, create a TableQuery to access data of the required data table. To include a table in the query, use the TableQuery.AddTable method. Next, specify columns to include in the table using the TableInfo.SelectColumns method.
↧