Aspose.Cells.GridWeb.Examples.CSharp.Articles.ReadCellsClientSide.InitData C# (CSharp) Method

InitData() private method

private InitData ( ) : void
return void
        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);
        }
    }
ReadCellsClientSide