private void InitData()
{
// Gets the web application's path.
string path = (this.Master as Site).GetDataDir();
string fileName = path + "\\Articles\\Data.xlsx";
// Clears datasheets first.
GridWeb1.WorkSheets.Clear();
// Imports from an excel file.
GridWeb1.ImportExcelFile(fileName);
}
}