private void LoadData()
{
// License li = new License();
// li.SetLicense(@"D:\grid_project\ZZZZZZ_release_version\Aspose.Total.20141214.lic");
// ExStart:LoadExcelFileFromStream
// Gets the web application's path.
string path = (this.Master as Site).GetDataDir();
string fileName = path + "\\GridWebBasics\\SampleData.xls";
// Opening an Excel file as a stream
FileStream fs = File.OpenRead(fileName);
// Loading the Excel file contents into the control from a stream
GridWeb1.ImportExcelFile(fs);
// Closing stream
fs.Close();
// ExEnd:LoadExcelFileFromStream
}