How to remove rows from datatable using index of arrray

hi all ,

i need remove the column from the Datatable based on the index available in an array .For ex :- {0,4,5,8,13}. How can solve this issue in UiPath . However if i use foreach or remove data row in datatable. The index will be changed when we remove the first value . Can Anyone provide me a better solution .

thanks in advance

@Akash_Clv

use for each for the array

inside use remove data column activity and pass the currentitem

For each Activity| item in arrIndex.OrderByDescending (Function (x) x)

  • Remove DataRow

As we remove from highest to lowest index, the removal will not affect the index from the existing / remaining rows

1 Like

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