Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CsvDocumentImporterOptions.Worksheet Property

Gets or sets a destination worksheet into which data is imported.

Namespace: DevExpress.XtraSpreadsheet.Import

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue("")]
public override string Worksheet { get; set; }

#Property Value

Type Default Description
String String.Empty

The worksheet name.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Worksheet
WorkbookImportOptions
.Csv .Worksheet

#Remarks

The code snippet below creates a new worksheet and imports data from a CSV file into this worksheet.

using DevExpress.Spreadsheet;
// ...

// Create a new worksheet.
workbook.Worksheets.Add("Data");
// Import data from a CSV file into this worksheet.
workbook.Options.Import.Csv.Worksheet = "Data";
workbook.LoadDocument(@"Documents\Book1.csv");
See Also