protected void btnCopyMultipleRows_Click(object sender, EventArgs e)
{
// Set sheets selectedIndex to 1
GridWeb1.WorkSheets.ActiveSheetIndex = 1;
// ExStart:CopyMultipleRows
// Get the instance of active GridWorksheet
var activeSheet = GridWeb1.ActiveSheet;
// Copy first 3 rows to 7th row
activeSheet.Cells.CopyRows(activeSheet.Cells, 0, 6, 3);
Label1.Text = "Rows 1 to 3 copied to rows 7 to 9 in worksheet " + activeSheet.Name;
// ExEnd:CopyMultipleRows
}