Back to Devexpress

ASPxGridViewExporter.GridViewID Property

aspnet-devexpress-dot-web-dot-aspxgridviewexporter-ac8295ae.md

latest1.7 KB
Original Source

ASPxGridViewExporter.GridViewID Property

Specifies the identifier of the associated ASPxGridView control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string GridViewID { get; set; }
vb
<DefaultValue("")>
Public Overridable Property GridViewID As String

Property Value

TypeDefaultDescription
StringString.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.

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

See Also

GridView

ASPxGridViewExporter Class

ASPxGridViewExporter Members

DevExpress.Web Namespace