Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    GridExportEventArgsBase<T>.Options Property

    Stores CSV, XLS, and XLSX export options.

    Namespace: DevExpress.ExpressApp.Blazor.SystemModule

    Assembly: DevExpress.ExpressApp.Blazor.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.Blazor

    Declaration

    public T Options { get; }

    Property Value

    Type Description
    T

    Type of export options. Depends on the export format.

    Remarks

    The following code snippet implements a Controller in an ASP.NET Core Blazor module. The controller accesses export options (GridXlExportOptions):

    using DevExpress.Blazor;
    using DevExpress.ExpressApp;
    using DevExpress.ExpressApp.Blazor.SystemModule;
    using DevExpress.ExpressApp.SystemModule;
    // ...
    public partial class CustomizeExportControllerBlazor : ViewController {
        public CustomizeExportControllerBlazor() {
            InitializeComponent();
            TargetViewType = ViewType.ListView;
        }
        private BlazorExportController blazorExportController;
        protected override void OnActivated() {
            base.OnActivated();
            blazorExportController = Frame.GetController<BlazorExportController>();
            // Subscribe to CustomizeGridExport event
            blazorExportController.CustomizeGridExport += blazorExportController_CustomizeGridExport;
        }
        void blazorExportController_CustomizeGridExport(object sender, GridExportEventArgs e) {
            // Export only selected rows
            if(e.Options is GridXlExportOptions options) {
                options.ExportSelectedRowsOnly = true;
            }
        }
        protected override void OnDeactivated() {
            blazorExportController.CustomizeGridExport -= blazorExportController_CustomizeGridExport;
            base.OnDeactivated();
        }
    }
    

    XAF ASP.NET Core Blazor XLS Export of Selected Grid List Rows, DevExpress

    See Also