FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / Extensions Class / LoadExcel Method / LoadExcel(C1FlexGridBase,String,String) Method
C1FlexGridBase instance to which a file will be loaded.
Name of the file to load, including the path.
Name of the worksheet to load.

In This Topic
    LoadExcel(C1FlexGridBase,String,String) Method
    In This Topic
    Loads the grid from a Microsoft Excel (.XLS) file.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub LoadExcel( _
       ByVal grid As C1FlexGridBase, _
       ByVal fileName As String, _
       ByVal sheetName As String _
    ) 
    public static void LoadExcel( 
       C1FlexGridBase grid,
       string fileName,
       string sheetName
    )

    Parameters

    grid
    C1FlexGridBase instance to which a file will be loaded.
    fileName
    Name of the file to load, including the path.
    sheetName
    Name of the worksheet to load.
    Remarks
    Use the LoadExcelSheetNames(C1FlexGridBase,String) method to obtain a list of the worksheets in an XLS file.
    See Also