Answers for "c# datatable values into database"

4

C# create DataTable

DataTable dt = new DataTable(); 
dt.Clear();
dt.Columns.Add("Name");
dt.Columns.Add("Marks");

DataRow _ravi = dt.NewRow();
_ravi["Name"] = "ravi";
_ravi["Marks"] = "500";
dt.Rows.Add(_ravi);
Posted by: Guest on August-20-2020
0

data rows to datatable c#

foreach (DataRow row in rowArray) {
   dataTable.ImportRow(row);
}
Posted by: Guest on September-07-2021

Browse Popular Code Answers by Language