Hi, I need help.
I am using c #, and I'm working on a report which I have an object table which I want to fill a DataTable by code, I tried this way but it did not work.
DataTable table = new DataTable("patients");
table.Columns.Add("name");
table.Columns.Add("id");
table.Rows.Add("sam", 1);
table.Rows.Add("mark", 2);
table1.DataSource = table;
prints the rows that have this datatable(2), but empty.