DataTable As DataSource for Visual Studio Report Writer

HLeyes

Member
Joined
Feb 10, 2016
Messages
15
Programming Experience
10+
Using VS 2012 and Community 2015. I am coding my connection to the database, and also creating a datatable with code to populate a datagridview. I see that it's fairly easy to create a report based on a connection made through the Server Explorer, and a dataset created by adding the dataset object.

is it possible to code the connection to SQL Server, to create the datatable with code also, and to display that data on that report? I remember working with Crystal many years ago with .ttx files that would tell the report the fields to print and where the fields would be placed. Also using classes and data binding for the fields on the form.

Thanks in advance,

HLeyes
 
Back
Top Bottom