hi,
in my .net application is a dataset with a datatable "t_pname" and the column "name".
It works fine. In my application is a crystal report, too.
Now, I will add the column "name" in my crystalreport.
In the crystal database expert I browse the data source for the tables I want to add to the report.
Under "project data> ADO.net Datasets" exists my dataset but the message is: "no items found". What can I do?
Here is my code:
Dataset1 ds_pname = new DataSet1();
DataTable t_pname = new DataTable();
DataColumn myDataColumn = new DataColumn();
myDataColumn.ColumnName = "name";
myDataColumn.DefaultValue = Application.ProductName;
t_pname.Columns.Add(myDataColumn);
ds_pname.Tables.Add(t_pname);
DataView myDataView = new DataView();
myDataView = new DataView(t_pname);
dataGrid1.DataSource = myDataView;
Thanks,
Stephanie
in my .net application is a dataset with a datatable "t_pname" and the column "name".
It works fine. In my application is a crystal report, too.
Now, I will add the column "name" in my crystalreport.
In the crystal database expert I browse the data source for the tables I want to add to the report.
Under "project data> ADO.net Datasets" exists my dataset but the message is: "no items found". What can I do?
Here is my code:
Dataset1 ds_pname = new DataSet1();
DataTable t_pname = new DataTable();
DataColumn myDataColumn = new DataColumn();
myDataColumn.ColumnName = "name";
myDataColumn.DefaultValue = Application.ProductName;
t_pname.Columns.Add(myDataColumn);
ds_pname.Tables.Add(t_pname);
DataView myDataView = new DataView();
myDataView = new DataView(t_pname);
dataGrid1.DataSource = myDataView;
Thanks,
Stephanie