Hello,
What is the proper way to clear a workbook and remove all worksheets (using syncfusion:SfSpreadsheet wpf)?
I’m using the following code; however, the worksheets still remain in the workbook.
for (int i = DataGridControl.Workbook.Worksheets.Count - 1; i > 1; i--)
{
var sheet = DataGridControl.Workbook.Worksheets[i];
DataGridControl.Workbook.Worksheets.Remove(sheet);
}
Regards,
Vadim