Row font bold how?

2 posts, 0 answers
  1. Smayr
    Smayr avatar
    14 posts
    Member since:
    May 2013

    Posted 25 Sep 2013 Link to this post

    below is my code
     Private Sub GVCl_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles GVClaimHistory.RowFormatting

            If InStr(e.RowElement.RowInfo.Cells(0).Value, "MyColumn") <> 0 Then
                e.RowElement.DrawFill = True
                e.RowElement.GradientStyle = GradientStyles.Solid
                e.RowElement.BackColor = Color.Navy
                e.RowElement.ForeColor = Color.Yellow
            End If
        End Sub

    I would like to add font bold to this row how can i do it?

    I tried     e.RowElement.Font.Bold = True
    but it gives me Error    74    Property 'Bold' is 'ReadOnly'.  

    Please help

  2. Smayr
    Smayr avatar
    14 posts
    Member since:
    May 2013

    Posted 25 Sep 2013 Link to this post

    I have solved by adding   e.RowElement.Font = New Font("Segoe UI", 8, FontStyle.Bold)
Back to Top