Remove duplicate values in grid

Hi All,

I have requirement where I need to remove consequent duplicate value while showing the data in grid.

i,e if values are: {"Requested", "Requested", "Pending","Sent For Approval","Approved","Pending","Approved","Approved"} the expected output is {"Requested", , "Pending","Sent For Approval","Approved","Pending","Approved"}

Here "Requested" and "Approved" are getting rejected as they are consequently occurring twice.

  Discussion posts and replies are publicly visible