code_junkie

DataRow Update .NET

Nov 14th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. // data table has data at this point....
  2.  
  3. myTable.Columns.Add("Fri");
  4.  
  5. foreach(DataRow r in myTable.Rows) {
  6. r["Fri"] = 4;
  7.  
  8. }
  9.  
  10. myTable.Columns.Add("Fri", typeof(int));
Add Comment
Please, Sign In to add comment