How do create a DataTable in C#?
I did like this:
DataTable dt = new DataTable(); dt.clear(); dt.Columns.Add(\"Name\"); dt.Columns.Add(\"Marks\")
To add a row:
DataRow row = dt.NewRow(); row["Name"] = "Ravi"; row["Marks"] = 500; dt.Rows.Add(row);
To see the structure:
Table.Columns