Aspose.Cells.GridWeb.Examples.CSharp.Cells.SetCustomFilter.InitGridWeb C# (CSharp) Method

InitGridWeb() private method

private InitGridWeb ( ) : void
return void
        private void InitGridWeb()
        {
            GridWeb1.WorkSheets.Clear();

            // Gets the web application's path.
            string path = (this.Master as Site).GetDataDir();

            string fileName = path + "\\Cells\\Products.xlsx";

            // Imports from an excel file.
            GridWeb1.ImportExcelFile(fileName);
            GridWeb1.ActiveCell = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex].Cells["A1"];            
        }