×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C#
Posted by: tausif alam
Added: Mar 30, 2016 7:15 AM
Views: 7
add a new datarow to the table
  1. DataRow newCustomersRow = dataSet1.Tables["Customers"].NewRow();
  2.  
  3. newCustomersRow["CustomerID"] = "ALFKI";
  4. newCustomersRow["CompanyName"] = "Alfreds Futterkiste";
  5.  
  6. dataSet1.Tables["Customers"].Rows.Add(newCustomersRow);