Posted By

derebus on 05/06/11


Tagged

Expression update datatable


Versions (?)

Update a value to entire rows in a column in dataset without looping


 / Published in: VB.NET
 

URL: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7379aeb0-1a23-4c01-bdff-5ee07d8b2580/

Update a value to entire rows in a column in dataset without looping

  1. Dim dt As New DataTable()
  2. Dim dc As New DataColumn("flag", GetType(Boolean))
  3. dc.Expression = "true"
  4. dt.Columns.Add(dc)

Report this snippet  

You need to login to post a comment.