Update data row

Hi All,

I have a data table with multiple columns. There could be any number of rows.

Logic: I have to get the value of each row for “Column 4”, very if the value contains “some number” in there and update “Column 9” saying “Numeric value exists”.

How can I achive that?

Hi @Krithi1

Can you try the below

Code:

dt.AsEnumerable().ToList().ForEach(Sub(row)
    If System.Text.RegularExpressions.Regex.IsMatch(row("Column 4").ToString(), "\d") Then
        row("Column 9") = "Numeric value exists"
    End If
End Sub)

Regards,