@Ryan_Lee,
Ok not sure what’s wrong but refer this code:
DtTestCode.zip (149.7 KB)
Output: Red are before and Green one are after!