FlexGrid for WPF | ComponentOne
C1.WPF.Grid.Excel Assembly / C1.WPF.Grid Namespace / LoadExcelOptions Class / OnLoadedCallback Property
Example

In This Topic
    OnLoadedCallback Property
    In This Topic
    Gets or sets a callback that is invoked after the Excel data has been parsed.
    Syntax
    'Declaration
     
    Public Property OnLoadedCallback As Action(Of String())
    public Action<string[]> OnLoadedCallback {get; set;}

    Property Value

    An Action callback that provides the names of the sheets.
    Example
    grid.LoadExcel("ExcelFileSample.xlsx", 
        new LoadExcelOptions { 
            OnLoadedCallback = sheetNames => 
            { 
                // sheetNames contains all sheets' names from the loaded Excel file.
            }
        });
    See Also