Skip to main content
Tab

ASPxGridViewExporter.GridViewID Property

Specifies the identifier of the associated ASPxGridView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public virtual string GridViewID { get; set; }

Property Value

Type Default Description
String String.Empty

The ASPxGridView control identifier.

Remarks

To export grid data, assign the grid control’s ID to the GridViewID property and call an export method.

<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CustomerReportsDataSource" />
<dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="grid" />
ASPxGridViewExporter1.WriteXlsxToResponse();
See Also