Hi Muneeb,
Thank you for your interest in Syncfusion products.
In order to disable the editing for all the sheets in a Workbook, the WorkbookLoaded event can be used. In that event, the GridCollection holds grid of all the sheets that can be used to disable the editing for all the grids of spreadsheet. Please make use of the below code and sample.
Example code
//Event subscription.
spreadsheetControl.WorkbookLoaded += SpreadsheetControl_WorkbookLoaded;
//Event customization
private void SpreadsheetControl_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args)
{
foreach (var grid in args.GridCollection)
{
//To disable the editing of worksheets.
grid.AllowEditing = false;
}
} |
Please get back to us, if you have any other queries.
Regards,
Arulpriya