I have a grid view displaying the messages a user has. Each message the user has is being marked whether it has been read or unread as a bit in my database table.
Is there a way how I can change the style of certain rows in my grid view according to whether the messages are read or unread? I wish to display the whole row with an unread message in bold.
You will need to use the
RowDataBoundevent for such a task. Here is an example:.
Reference: http://blog.devexperience.net/en/5/Change_background_color_of_GridView's_Rows.aspx