Skip to main content

ASPxDataViewBase.ItemStyle Property

Gets the style settings used to paint data items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public DataViewItemStyle ItemStyle { get; }

Property Value

Type Description

A DataViewItemStyle object that contains style settings.


The following part of the ASPxDataView - Custom Callback online demo illustrates how to customize the control’s items style.

<dxdv:aspxdataview id="dvCameras" runat="server" columncount="2" rowperpage="5" Width="100%"
    ClientInstanceName="dvCameras" DataSourceID="AccessDataSource1">
        <ItemStyle Height="50px" >
            <Paddings PaddingTop="5px" PaddingBottom="5px"></Paddings>
            <table cellpadding="0" cellspacing="0">
            <tbody><tr><td valign="top">
            <dxe:ASPxImage id="ModelImage" runat="server" ImageUrl='<%# ImagePath 
                + Eval("ImageFileName") %>'></dxe:ASPxImage>
            <td><div style="width: 5px" class="Spacer"></div></td>
            <dxe:ASPxLabel id="ModelLabel" runat="server" Text='<%# Eval("Model") %>' 
                Font-Bold="True" CssClass='<%# SortColor("Model") %            >'></dxe:ASPxLabel><br/>
            <dxe:ASPxLabel id="PixelsLabel" runat="server" Text='<%# Eval("Pixels") + " million pixels" %>' 
                CssClass='<%# SortColor("Pixels") %>'></dxe:ASPxLabel>
See Also