i need to remove the data row by some condition matched.so i am using IF condition and all fine . Remove data row is throwing an error like collection was modified. so i need to use
Datatable.remove.rows(row) passing row as for each item.
But problem is how can i add this Datatable.remove.rows(row) method into my code like i cannot assign to anything, i am just tried to use in writeline but as expected it thrown error like this expression cannot give any value.
Please advise on above how can i use code Datatable.remove.rows(row).