Posted 14 December 2020, 10:32 am EST
Hi there,
Another interesting one is where you add Column names as a first row, they come out last… like it is sorted or something?
dataTable.Rows.Add(“Column1”, “Column2”);
dataTable.Rows.Add(“0”, “Larry”);
dataTable.Rows.Add(“1”, “Bob”);
dataTable.Rows.Add(“1”, “Bob”);
dataTable.Rows.Add(“2”, “Tom”);
dataTable.Rows.Add(“3”, “Jerry”);
Column1 and Column2 are now at the last record once processed.
thanks,
Damian.