Reputation: 3
I have a datatable with the following columns:
DataTable dt = new DataTable();
dt.Columns.Add("name",typeof(string));
dt.Columns.Add("Database",typeof(List<String>));
dt.Columns.Add("schedule", typeof(String));
dt.Columns.Add("Path",typeof(List<String>));
gridTask.DataSource = dt;
When I insert a new row, everything is ok:
List<string> database = new List<string>(){"test1","test2","test3"};
List<string> path = new List<string>(){"test1","test2","test3"};
dt.Row.add((new object[] {"Test",database,"Test",path });
gridTask.DataSource = dt;
But I want to know how can I get the data from the columns List<String>
Upvotes: 0
Views: 118