How to validate if current row being entered in editable grid already exits in grid

I want to validate if current row being entered in editable grid is duplicate or not i.e. does it exists in grid already or not.

  Discussion posts and replies are publicly visible