protected void btnCopyWorksheet_Click(object sender, EventArgs e)
{
// ExStart:CopyWorksheetUsingIndex
// Adding the copy of a worksheet to GridWeb by specifying its sheet index
int sheetIndex = GridWeb1.WorkSheets.AddCopy(0);
// ExEnd:CopyWorksheetUsingIndex
// ExStart:CopyWorksheetUsingName
// Adding the copy of a worksheet to GridWeb by specifying its sheet name
int sheetIndex1 = GridWeb1.WorkSheets.AddCopy("Students");
// ExEnd:CopyWorksheetUsingName
}
}