private void LoadData()
{
// Gets the web application's path.
string path = (this.Master as Site).GetDataDir();
string fileName = path + "\\RowsAndColumns\\Products.xlsx";
// Imports from an excel file.
GridWeb1.ImportExcelFile(fileName);
GridWeb1.ActiveCell = GridWeb1.WorkSheets[0].Cells["A1"];
// Access active worksheet
var sheet = GridWeb1.WorkSheets[this.GridWeb1.ActiveSheetIndex];
// Enable GridWeb's auto-filter.
sheet.AddAutoFilter(0, 0, sheet.Cells.MaxDataColumn);
sheet.RefreshFilter();
}