c# - Apply bold font to two consecutive rows in a datagridview -


i have 2 consecutive rows in datagridview, both of need bold. have changed text colour lower row red follows. although can't seem find similar bold function.

cashbookrowsmarchtotals.rows[1].defaultcellstyle.forecolor = color.red;

i made 2 rows bold using following code, wondering if possible apply bold (or other styles) multiple rows/columns @ time?

cashbookrowsmarchtotals.rows[0].defaultcellstyle.font = new font(cashbookrowsmarchtotals.font, fontstyle.bold); cashbookrowsmarchtotals.rows[1].defaultcellstyle.font = new font(cashbookrowsmarchtotals.font, fontstyle.bold);


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -