Well. I have a DataTable with multiple columns and multiple rows.
I want to loop through the DataTable dynamically basically the output should look as follows excluding
foreach (DataColumn col in rightsTable.Columns) { foreach (DataRow row in rightsTable.Rows) { Console.WriteLine(row[col.ColumnName].ToString()); } }