How to get data from datatable to dataset to use in report viewer ?

G

grl1903

hi. i have a problem about datatable usage for microsoft report
viewer.

i want to take this row of datatable into dataset
i have same columns as dataset.
DataTable test_cases = new DataTable();
DataRow new_row = test_cases.NewRow();
// test case columnlarýna isim ver
test_cases.Columns.Add("TestCaseId");
test_cases.Columns.Add("Cause");
test_cases.Columns.Add("Effect");



new_row["TestCaseId"] = 1;
new_row["Cause"] = "This is input 1";
new_row["Effect"] = "Student can go to internship";

test_cases.Rows.Add(new_row);

is it possible to take datas directly from datatable to report viewer?
 
O

ocengiz0

hi. i have a problem about datatable usage for microsoft report
viewer.

i want to take this row of datatable into dataset
i have same columns as dataset.
DataTable test_cases = new DataTable();
            DataRow new_row = test_cases.NewRow();
            // test case columnlarýna isim ver
            test_cases.Columns.Add("TestCaseId");
            test_cases.Columns.Add("Cause");
            test_cases.Columns.Add("Effect");

            new_row["TestCaseId"] = 1;
            new_row["Cause"] = "This is input 1";
            new_row["Effect"] = "Student can go to internship";

            test_cases.Rows.Add(new_row);

is it possible to take datas directly from datatable to report viewer?

I have the similar problem with u. I have the datatable,have database
table with the same columns to datatable, but cannot insert datatable
to db table :(
 

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