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

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hi,
I have to update a column in a set to a value like true or false. Like I have to update all rows in flag column in the dataset to true.like following

id flag
1 true
2 true
3 true

I achieved the above concept using a for loop using the row count of the data table. But it takes long time if there is large data. So I wonder that is there any other way to change all the rows value of a particular column in a data table to a value without
using loop.

Thanks in advance,
Elango

View the full article
 
Back
Top