Adding data to datatable
Posted on 2008-09-30
I am using visual basic .net 2005.
I added a new dataset to my project: DataSet1.xsd
In the DataSet1.xsd, I created a datatable: DataTable1
In the DataTable1 I created columns: DataColumn1, DataColumn2
Im going to be using the the dataset in crystal report. I have to crystal report created already
using the dataset created above.
Now, I am trying to add rows to the datatable of which is obviously in the dataset
but when I try, I keep getting decleration errors and such.
Anyone give an example of some code to add rows to a datatable of which
the datasets/datatables are created in the designer.
I have seen code to add rows to datasets/datatables created in code, but i dont want to do it that way.