Check the database and then edit listview

Dec 11 2008 1:14 PM
Hi!

I have database fudbalskiklub.mdf and I have a table in it:

Vesti (Messages)

in Vesti I have:

IDPoruke(Message ID)
Naslov(Subject)
Poruka(Body)
Vreme(DateTime.Now)
Procitano(was the message read or not)

I want c# to check for each row in Vesti if the message was read(1) or not (0)
and then if the value is 1 the text in listview in that line is bold if not then classic text

How can I do that?

Thanks!

Answers (1)