Skip to main content
Tab

GridViewStyles.SelectedRow Property

Specifies the appearance of the selected data row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewDataRowStyle SelectedRow { get; }

Property Value

Type Description
GridViewDataRowStyle

Style settings that specify the selected row appearance.

Remarks

Enable row selection and specify the SelectedRow property to define the appearance of the selected row.

The style settings of the selected row are not in effect when row selection is disabled.

The SelectedRow property allows you to specify the appearance of the selected row in markup and in a CSS class.

Markup Example

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

CSS Example

#ASPxGridView1 .selectedRowStyle td{  
    background-color: Brown;  
}  
<dx:ASPxGridView ID="ASPxGridView1" >  
    <%--...--%>
    <Styles>  
        <SelectedRow CssClass="selectedRowStyle" />
    </Styles>  
</dx:ASPxGridView>
See Also