Back to Devexpress

GridViewStyles.FocusedGroupRow Property

aspnet-devexpress-dot-web-dot-gridviewstyles-a37c99d5.md

latest2.0 KB
Original Source

GridViewStyles.FocusedGroupRow Property

Specifies the appearance of the focused group row.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public GridViewGroupRowStyle FocusedGroupRow { get; }
vb
Public ReadOnly Property FocusedGroupRow As GridViewGroupRowStyle

Property Value

TypeDescription
GridViewGroupRowStyle

Style settings that specify the appearance of the focused group row.

|

Remarks

Set the AllowFocusedRow property to true to enable row focus.

When row focus is disabled, the style settings of the focused group row are not in effect.

The FocusedGroupRow property allows you to specify the appearance of the focused group row in markup and in a CSS class.

Markup Example

aspx
<dx:ASPxGridView ID="ASPxGridView1" >  
    <%--...--%>
    <Styles>  
        <FocusedGroupRow BackColor="Brown" ForeColor="Yellow" >
        </FocusedGroupRow>  
    </Styles>  
</dx:ASPxGridView>

CSS Example

css
#ASPxGridView1 .focusedGroupRowStyle td{  
    background-color: Brown;  
}
aspx
<dx:ASPxGridView ID="ASPxGridView1" >  
    <%--...--%>
    <Styles>  
        <FocusedRow CssClass="focusedGroupRowStyle" />
    </Styles>  
</dx:ASPxGridView>

See Also

GridViewStyles Class

GridViewStyles Members

DevExpress.Web Namespace