'Declaration Public Overloads Shared Function LoadExcelAsync( _ ByVal grid As FlexGrid, _ ByVal fileName As String, _ ByVal fileFormat As ExcelFileFormat, _ ByVal sheetName As String, _ ByVal options As LoadExcelOptions, _ ByVal cancellationToken As CancellationToken _ ) As Task
public static Task LoadExcelAsync( FlexGrid grid, string fileName, ExcelFileFormat fileFormat, string sheetName, LoadExcelOptions options, CancellationToken cancellationToken )
Parameters
- grid
- Instance of the FlexGrid to load the data into.
- fileName
- The path to the Excel file.
- fileFormat
- A ExcelFileFormat file format.
- sheetName
- The name of the Excel sheet to load. If null, the first sheet will be loaded by default.
- options
- A LoadExcelOptions loading options.
- cancellationToken
- The token to monitor for cancellation requests.
Return Value
A System.Threading.Tasks.Task representing the asynchronous operation.