private void InitData() { // Create path to xls file string path = (this.Master as Site).GetDataDir(); // Set filename string fileName = path + "\\Miscellaneous\\PivotTable.xls"; // Imports from an excel file. GridWeb1.ImportExcelFile(fileName); }