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