I have a question related to gridviews in ASP.NET
I have a gridview that I pull information from a SQL db and it displays the username and current status IE;
- Username | Status
- user1 | Logged Out
- user2 | Logged in
- user3 | On Leave
So this is working all handy dandy, however what I'd like to do is rather that display text for status, I would like to display a "bullet type" image with different colors. red, green, orange, blue - for different status.
Do I need to get these images into the db somehow, or can I use some sort of IF statement to just say, if the status is "1 - Logged in" then display "green.png"?
thanks in advance