c# - How to make row in gridview bold and regular programatically -


hi have written program in c# outlook u can send, receive, reply , forward mails in text format through database used gridview retrieve mails. new task how mark unread message bold , read message regular in text.

help needed

you can loop through rows using.

datagridviewcellstyle style = new datagridviewcellstyle(); style.font = new font(datagridview.font, fontstyle.bold); foreach(datagridviewrow dg_r in mydatagridview.rows)  {   dg_r.defaultcellstyle = style; // sets row style bold } 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -