条件を満足する行をすべて削除する構文

こんにちは
UiPath Studio 2022.4.3EnterPrise Editionユーザです。

1列複数行のdt_1があります。

下記の条件を満足する行をすべて削除する構文をご教示ください。

String.Join("",row.itemArray).Contains(",,,,,,,,,,") OrElse String.IsNullOrWhiteSpace(Row.ItemArray.ToString)

@gorby,

Instead of delete the lines just filter them out using this LINQ

dt.AsEnumerable().Where(Function(row) Not String.Join("", row.ItemArray).Contains(",,,,,,,,,,") AndAlso Not String.IsNullOrWhiteSpace(String.Join("", row.ItemArray))).CopyToDataTable()

This will return you datatable with only the required rows.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.