Back to Devexpress

GridViewColumn.ExportWidth Property

aspnet-devexpress-dot-web-dot-gridviewcolumn-dc11cb9d.md

latest1.5 KB
Original Source

GridViewColumn.ExportWidth Property

Specifies the column’s export width.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(0)]
public virtual int ExportWidth { get; set; }
vb
<DefaultValue(0)>
Public Overridable Property ExportWidth As Integer

Property Value

TypeDefaultDescription
Int320

The column’s width, in pixels.

|

Remarks

Use a column’s ExportWidth property to specify the width of the column in the exported file.

aspx
<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CustomerReportsDataSource"
    AutoGenerateColumns="False" >
    <Columns>
        <dx:GridViewDataTextColumn FieldName="ProductName" ExportWidth="50" />
    <%--...--%>

In WYSIWYG export mode, if the ExportWidth property is set to default 0, the column’s export width depends upon the column’s content.

See Also

GridViewColumn Class

GridViewColumn Members

DevExpress.Web Namespace