The method to use Replace in a DataTable help

Hi @22222222asas,

Based on the regex you provided refer the xaml attached below for the solution.

Test.xaml (8.4 KB)

The LINQ query iterates over each row in the DataTable and applies the Replace function to every item (cell) in the row, removing whitespaces and parentheses. It then adds the modified rows to a cloned DataTable, preserving the original structure but with the cleaned-up data.

Hope this helps , Thank you :grinning:

2 Likes