[]
Loads data from an Excel file into the specified grid synchronously.
public static void LoadExcel(this FlexGrid grid, string fileName)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
string | fileName | The path to the Excel file. |
Loads data from an Excel file into the specified grid synchronously.
public static void LoadExcel(this FlexGrid grid, string fileName, string sheetName)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
string | fileName | The path to the Excel file. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
Type | Condition |
---|---|
ArgumentException |
Loads data from an Excel file into the specified grid synchronously.
public static void LoadExcel(this FlexGrid grid, string fileName, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
string | fileName | The path to the Excel file. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Loads data from an Excel file into the specified grid synchronously.
public static void LoadExcel(this FlexGrid grid, string fileName, string sheetName, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
string | fileName | The path to the Excel file. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Type | Condition |
---|---|
ArgumentException |
Loads data from an Excel file into the specified grid synchronously.
public static void LoadExcel(this FlexGrid grid, string fileName, ExcelFileFormat fileFormat, string sheetName, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
string | fileName | The path to the Excel file. |
ExcelFileFormat | fileFormat | A ExcelFileFormat file format. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Type | Condition |
---|---|
ArgumentException |
Loads Excel data from stream
into the specified grid.
public static void LoadExcel(this FlexGrid grid, Stream stream)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
Stream | stream | A data Stream. |
Loads Excel data from stream
into the specified grid.
public static void LoadExcel(this FlexGrid grid, Stream stream, string sheetName)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
Stream | stream | A data Stream. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
Type | Condition |
---|---|
ArgumentException |
Loads Excel data from stream
into the specified grid.
public static void LoadExcel(this FlexGrid grid, Stream stream, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
Stream | stream | A data Stream. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Loads Excel data from stream
into the specified grid.
public static void LoadExcel(this FlexGrid grid, Stream stream, string sheetName, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
Stream | stream | A data Stream. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Type | Condition |
---|---|
ArgumentException |
Loads Excel data from stream
into the specified grid.
public static void LoadExcel(this FlexGrid grid, Stream stream, ExcelFileFormat fileFormat, string sheetName, LoadExcelOptions options)
Type | Name | Description |
---|---|---|
FlexGrid | grid | Instance of the FlexGrid to load the data into. |
Stream | stream | A data Stream. |
ExcelFileFormat | fileFormat | A ExcelFileFormat file format. |
string | sheetName | The name of the Excel sheet to load. If null, the first sheet will be loaded by default. |
LoadExcelOptions | options | A LoadExcelOptions loading options. |
Type | Condition |
---|---|
ArgumentException |