Fine
hope these steps would helpyou resolve this
–hope we have the datatable named dt
–so now use a for each row loop and pass the variable dt as input
–inside the loop use a if condition like this row(“Column2”).ToString.Contains(“41087”) and NOT dt.Rows.IndexOf(row).Equals(0)
If true it will go to THEN part where we can use a assign activity like this dt.Rows(dt.Rows.IndexOf(row)-1)(“Column2”) = String.Empty
so this will assign null value to all the rows before to the row which has value as 41087
–followed by this for each row loop use a assign activity like this to get apart from those string.empty assigned rows
like this dt = dt.Select(“[Column2] <> String.Empty”).CopyToDatatable()
You cant remove a row if you are inside a for each row activity, use activity Lookup Data Table to find the row, it will return the index found, use Remove Data Row to remove the row with index before that, but have to be careful to avoid errors when text is not found or it is found in first row, repeat until you dont find it anymore…