This is a migrated thread and some comments may be shown as answers.

Row font bold how?

1 Answer 657 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Smayr
Top achievements
Rank 1
Smayr asked on 25 Sep 2013, 08:27 AM
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

1 Answer, 1 is accepted

Sort by
0
Smayr
Top achievements
Rank 1
answered on 25 Sep 2013, 08:50 AM
I have solved by adding   e.RowElement.Font = New Font("Segoe UI", 8, FontStyle.Bold)
Tags
GridView
Asked by
Smayr
Top achievements
Rank 1
Answers by
Smayr
Top achievements
Rank 1
Share this question
or