How to make gridview row clickable and update its status in database as viewed?

I have a list of notification in gridview. Now i want to update the status value of notification in database which are viewed.

Any help will be appreciated.