private void LoadCar() { HPS.BLL.CarBLL.BLLCar_TFactory CarFactory = new HPS.BLL.CarBLL.BLLCar_TFactory(); DataTable CarDataTable = new DataTable(); CarFactory.GetAll(ref CarDataTable); this.CarGridView.DataSource = CarDataTable; //HPS.Common.FrequentlyUsedData.CarDataTable.DefaultView.RowFilter = ""; //this.CarGridView.DataSource = HPS.Common.FrequentlyUsedData.CarDataTable; }
private void LoadAllCars() { try { HPS.BLL.CarBLL.BLLCar_TFactory CarFactory = new HPS.BLL.CarBLL.BLLCar_TFactory(); DataTable CarDataTable = new DataTable(); CarFactory.GetAll(ref CarDataTable); this.CarGridView.DataSource = CarDataTable; } catch (System.Exception ex) { throw ex; } }