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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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