January 5, 2023, 7:13am
In a data table column ,lets say column 3 contains the value true and false,
Provide a LINQ query to update the values in column 3 from true to false.
process created on C#
January 5, 2023, 8:04am
You can directly do it using expression as below…use in assign
Dt.Columns(2).Expression = "'False'"
January 5, 2023, 8:05am
Can you please explain in detail
Current process is in C#
Can you elabrate the query?
January 5, 2023, 8:18am
If C# use as below
dt.Columns.Expression = "'False'"
Here dt is the input datatable …1 is the column index…(Index starts from 0) …you can as well use column name instead of column index
Expression is used to set the value to whole of the column… As you wanted false to be set we are giving False between single quotes and the value should be a string so using double quotes around it
Hope this helps
January 5, 2023, 8:22am
How about using Invoke Code as the following?
Main.xaml (7.0 KB)
January 8, 2023, 8:23am
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.