Untyped DataSet as datasource in Reportviewer

T

TompIfe

Hi,
I want to use an untyped ADO dataset as a datasource in ReportViewer.
I know how to use typed datasets, but when i try to use similar code with an
untyped dataset, no report is rendered since (?)
I do not know how to get the untyped dataset defined as a data source.
Any suggestions are welcomed.
TompIfe
CODE:
DataSet ds = new DataSet();

DataTable dt = new DataTable("MinTabell");

dt = ds.Tables.Add();

dt.Columns.Add("FirstName");

dt.Columns.Add("LastName");

DataRow dr = dt.NewRow();

dr["Navn"] = "Tore";

dr["Alder"] = "Pedersen";

dt.Rows.Add(dr);

this.BindingSource.DataSource = ds;// (there is actually no BindingSource)

this.reportViewer1.Refresh();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top