protected void btnSubmit3_Click(object sender, EventArgs e)
{
// Initialize Data
InitData();
GridWorksheet sheet = GridWeb1.WorkSheets["PivotTable Report"];
GridPivotTable pivotTable = sheet.PivotTables[0];
// Sets feild Position property determining the location of the field
pivotTable.Fields("Employee").Position = int.Parse(TextBox3.Text.Trim());
pivotTable.Fields("Country").Position = int.Parse(TextBox4.Text.Trim());
// Paints PivotTable report
pivotTable.CalculateData();
}