Back to Devexpress

ASPxGridView.Styles Property

aspnet-devexpress-dot-web-dot-aspxgridview-a8b36f5d.md

latest1.7 KB
Original Source

ASPxGridView.Styles Property

Provides access to the style settings that control the appearance of the ASPxGridView elements.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public GridViewStyles Styles { get; }
vb
Public ReadOnly Property Styles As GridViewStyles

Property Value

TypeDescription
GridViewStyles

A GridViewStyles object that provides style settings for view elements.

|

Remarks

The GridViewStyles object provides a number of properties that allow style settings of various Grid View elements to be customized.

aspx
<dx:ASPxGridView ID="grid" runat="server" DataSourceID="ObjectDataSource1" KeyFieldName="Id" 
  AutoGenerateColumns="False" Width="100%" >
    <Columns>
    ...
    </Columns>
    <Styles>
        <EditingErrorRow BackColor="Yellow" />
    </Styles>
</dx:ASPxGridView>

See Also

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace