Tab
A newer version of this page is available. Switch to the current version.

GridViewDataTextColumn Class

Represents a data column used to display string values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class GridViewDataTextColumn :
    GridViewEditDataColumn
Public Class GridViewDataTextColumn
    Inherits GridViewEditDataColumn

Remarks

The column editor's settings can be accessed and customized using the GridViewDataTextColumn.PropertiesTextEdit property.

Concept

Data Columns

Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"  
  DataSourceID="SqlDataSource1" Width="40%" Theme="Office365" KeyFieldName="OrderID">
    <Columns>
        <dx:GridViewDataTextColumn FieldName="OrderID" VisibleIndex="0" ReadOnly="True">
            <EditFormSettings Visible="False" />
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataDateColumn FieldName="OrderDate" VisibleIndex="1">
            <PropertiesDateEdit DisplayFormatString="ddd dd/mm/yyyy" Height="30" />
        </dx:GridViewDataDateColumn>
        <dx:GridViewDataTextColumn FieldName="ShipName" VisibleIndex="2">
        </dx:GridViewDataTextColumn>
    </Columns>
    <SettingsPager Mode="ShowPager" PageSize="4" />
</dx:ASPxGridView>

See Also