Access Worksheets

Accessing a Worksheet

All worksheets contained in Aspose.Cells.GridWeb, are stored in the GridWeb control’s GridWorksheetCollection. There are two ways to access a worksheet: by its sheet index or by its sheet name.

Using Sheet Index

The code snippet below shows how to access a specific web worksheet from the GridWeb control’s GridWorksheetCollection using the sheet index.

Using Sheet Name

The code snippet below shows how to access a web worksheet from the GridWeb control’s GridWorksheetCollection collection using the sheet name.