FlexGrid for WPF | ComponentOne
C1.WPF.Grid.Excel Assembly / C1.WPF.Grid Namespace / Extensions Class / LoadExcel Method / LoadExcel(FlexGrid,Stream,String) Method
Instance of the FlexGrid to load the data into.
A data System.IO.Stream.
The name of the Excel sheet to load. If null, the first sheet will be loaded by default.

In This Topic
    LoadExcel(FlexGrid,Stream,String) Method
    In This Topic
    Loads Excel data from stream into the specified grid.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub LoadExcel( _
       ByVal grid As FlexGrid, _
       ByVal stream As Stream, _
       ByVal sheetName As String _
    ) 
    public static void LoadExcel( 
       FlexGrid grid,
       Stream stream,
       string sheetName
    )

    Parameters

    grid
    Instance of the FlexGrid to load the data into.
    stream
    A data System.IO.Stream.
    sheetName
    The name of the Excel sheet to load. If null, the first sheet will be loaded by default.
    Exceptions
    ExceptionDescription
    The exception that is thrown when one of the arguments provided to a method is not valid.
    See Also