[]
        
(Showing Draft Content)

C1.WPF.Grid.LoadExcelOptions.OnLoadedCallback

OnLoadedCallback Property

OnLoadedCallback

Gets or sets a callback that is invoked after the Excel data has been parsed.

Declaration
public Action<string[]> OnLoadedCallback { get; set; }
Property Value
Type Description
Action<string[]>

An Action<T> callback that provides the names of the sheets.

Examples
grid.LoadExcel("ExcelFileSample.xlsx", 
    new LoadExcelOptions { 
        OnLoadedCallback = sheetNames => 
        { 
            // sheetNames contains all sheets' names from the loaded Excel file.
        }
    });