Hello My community friends
This is Chenzhixing and come to ask another question again.
My question is. How can I delete the datarow when the number is zero in fifth column.
For example:
Hi Chenz - You can use a LOOP and IF condition for column and check if the value is greater than > 0, loop next row and if the value is 0, use Delete Data Row Activity.
it is at the end of the data, but the position is changeable. If I will use delete range activity to delete all the zero rows, I must find the position first, but how:cry:
inside the excel application scope use the assign dtrows(datarow )=dt.select(dt.Columns(5)) then use for each of system.data.datarow type in that use remove data row and in row property of remove data row mention item of for each loop and then after the completion of for loop use write range.