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

Grouping style?

2 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 14 Dec 2010, 02:28 AM
Is there any way to control the style of the grouping row? We'd like the group header to be bolded or have a different background color so they are more easy to see in the list.

Is there any way to control any of that?

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 14 Dec 2010, 11:02 AM
Hi Deborah

Yes you can format these cells in much the same way as any other cell. The below exmaple shows changing the fore colour to red.


Private Sub RadGridView1_ViewCellFormatting(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.ViewCellFormatting
    If e.CellElement.Value IsNot Nothing Then
        If TypeOf e.CellElement Is Telerik.WinControls.UI.GridGroupContentCellElement Then
            e.CellElement.ForeColor = Color.Red
        End If
    End If
End Sub

Hope that helps
Richard
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 14 Dec 2010, 11:44 AM
Hello Deborah,

Please take a look at this thread.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
Tags
GridView
Asked by
Deborah
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Emanuel Varga
Top achievements
Rank 1
Share this question
or