The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

DataSourceImportOptions Class

Allows specifying data source fields to import.

Namespace: DevExpress.Spreadsheet

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

Declaration

public class DataSourceImportOptions :
    DataImportOptions
Public Class DataSourceImportOptions
    Inherits DataImportOptions
public class DataSourceImportOptions :
    DataImportOptions
Public Class DataSourceImportOptions
    Inherits DataImportOptions
public class DataSourceImportOptions :
    DataImportOptions
Public Class DataSourceImportOptions
    Inherits DataImportOptions

Remarks

When calling the WorksheetExtensions.Import method, create the DataSourceImportOptions instance and use the DataSourceImportOptions.PropertyNames property to specify field names which should be imported form the data source.

Examples

Dim list As New List(Of TestObject)()
list.Add(New TestObject(1, "1", True))
list.Add(New TestObject(2, "2", False))
worksheet.Import(list, 0, 0, New DataSourceImportOptions() With {
    .PropertyNames = New String() { "BoolValue", "IntValue" }
})

Inheritance

Object
DataImportOptions
DataSourceImportOptions
See Also