dv2020
Active member
- Joined
- Dec 18, 2020
- Messages
- 30
- Programming Experience
- 1-3
Hi All,
I have this code below which works well. I'm trying to modify the code so it only bolds the value, and not change the font to "Arial" or the size.
I'm having trouble working out how to do this, as the Font Class required a name, and current size, therefore if i remove "Aria'", 8.5 it is not valid.
Any help would be much appreciated
Kind Regards
David
I have this code below which works well. I'm trying to modify the code so it only bolds the value, and not change the font to "Arial" or the size.
Bold Cell in Data Grid:
if (cellVal > 0 && e.ColumnIndex > 15 && e.ColumnIndex < 27)
{ row.Cells[e.ColumnIndex].Style.BackColor = cellpositive;
row.Cells[e.ColumnIndex].Style.Font = new Font("Arial", 8.5F, FontStyle.Bold, GraphicsUnit.Pixel);
}
I'm having trouble working out how to do this, as the Font Class required a name, and current size, therefore if i remove "Aria'", 8.5 it is not valid.
Any help would be much appreciated
Kind Regards
David