Hi,
Is there a way to change a rowfont to Bold based on the criteria in the records?
Example:
Where I have code "c2.RowFont.Bold = True", it gives me error that Property Bold is read only.
Private Sub SetConditions()
Dim c1 As New ConditionalFormattingObject("Forecolor Black", ConditionTypes.Equal, "0", "20", True)
c1.RowForeColor = Color.Black
grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c1)
Dim c2 As New ConditionalFormattingObject("Forecolor Blue", ConditionTypes.Equal, "3", "", True)
c2.RowForeColor = Color.Blue
c2.RowFont.Bold = True
grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c2)
grd1.TableElement.Update(False)
End Sub
Is there a way to change a rowfont to Bold based on the criteria in the records?
Example:
Where I have code "c2.RowFont.Bold = True", it gives me error that Property Bold is read only.
Private Sub SetConditions()
Dim c1 As New ConditionalFormattingObject("Forecolor Black", ConditionTypes.Equal, "0", "20", True)
c1.RowForeColor = Color.Black
grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c1)
Dim c2 As New ConditionalFormattingObject("Forecolor Blue", ConditionTypes.Equal, "3", "", True)
c2.RowForeColor = Color.Blue
c2.RowFont.Bold = True
grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c2)
grd1.TableElement.Update(False)
End Sub