Quote:
Update a single column in a in-memory datatable
...
Dim MyRow() As Data.DataRow
MyRow = Facility_Table.Select("FacilityNameRef=123")
MyRow(0)("Locked") = 0
Well...
You can't update single column (all rows in that column) this way, because
DataTable.Select method[
^] returns an array of rows. You have to loop through the rows in collection to be able to change their values.
Dim MyRows() As Data.DataRow = Facility_Table.Select("FacilityNameRef=123")
For Each r As Data.DataRow in MyRows
r("ColumnName") = 0
Next