Skip to Content
0
May 19, 2020 at 08:51 PM

Use DataSet as a datasource

68 Views

Hi folks,

Until now I have always used an ODBC connection when designing my reports to get access to the fields. This has worked fine.

And in my C# code I just do...

rep.SetDataSource(someDataSet);

But if I change the name of the ODBC connection then I have to update all my reports.

I was wondering if there was a way I can just use a DataTable from a DataSet when designing my reports. So I can access the field names that are in the DataTable but at runtime still continue set the datasource with a matching DataSet as above.

Im sure there must be a way of doing this.

Hope this makes sense.

John