dTable.Rows.Add("SSN", "Firstname", "Lastname");
I want to continue adding elements to the same row as the code above with a for loop, how do i do it ?
EDIT:
Thanks for fast answer! sorry i was unclear with my main question How do i continue to expand the row? I have an array with values “Task 1” “Task 2” “Task 3” etc is it possible to make a loop that expands it like this
dTable.Rows.Add(“SSN”, “Firstname”, “Lastname”);
dTable.Rows.Add(“SSN”, “Firstname”, “Lastname”, arrTask[0]);
dTable.Rows.Add(“SSN”, “Firstname”, “Lastname” arrTask[0], arrTask[1]);
dTable.Rows.Add(“SSN”, “Firstname”, “Lastname” arrTask[0], arrTask[1], arrTask[2]);
You can put this code inside loop:
Edit: In case you want to add values in existing row: