Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3760
Is there a way to style GroupedRows differently depending on the grouping level?
posted

Is there a way to style GroupedRows differently depending on the grouping level? In InitializeRow you can set the styles on a per row basis as in

cells(3).CssClass = "level1"


but I can't find any way of setting different styles on different groups rows.

I would like to do something like this but there is no exposed cssclass on a grouped row.

 
    Private Sub whdgRecordLinks_GroupedRowInitialized(sender As Object, e As Infragistics.Web.UI.GridControls.GroupedRowEventArgsHandles whdgRecordLinks.GroupedRowInitialized
        If e.GroupedRow.OwnerCollection.ParentRow Is Nothing Then
            e.GroupedRow.CssClass = "level1"        
        End If
    End Sub
 
I have also tried applying styles such as 
 
        TBODY TR.GroupRow TD
        {
            background-imageurl(./ig_res/Office2010Blue/images/captionbackground.gif);
            font-weightbold;
        }
This works but applies to all GroupRows.
Parents Reply Children