Skip to main content
Tab

GridViewStyles.FocusedCell Property

Specifies the appearance of the focused data cell.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewCellStyle FocusedCell { get; }

Property Value

Type Description
GridViewCellStyle

Style settings that specify the focused cell appearance.

Remarks

The FocusedCell property allows you to specify the appearance of the focused cell in markup and in a CSS class. Note that this property is in effect when the grid is in batch edit mode

Markup Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
    <!-- ... -->
    <Styles>
        <FocusedCell BackColor="LightYellow" />
    </Styles>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>

CSS Example

#ASPxGridView1 .focusedCellStyle {
    background-color: lightyellow;
}
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
    <!-- ... -->
    <Styles>
        <FocusedCell CssClass="focusedCellStyle" />
    </Styles>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>
See Also