/// <summary> /// Bind VehicleTypeLookUp grid /// </summary> private void BindGrid() { objVehicleTypelookup = new VehicleTypelookupDal(); DataSet dsVehicle = objVehicleTypelookup.GetVehicleType(""); radgrdVehicleType.DataSource = dsVehicle; radgrdVehicleType.DataBind(); ViewState[vsVehicle] = dsVehicle; }
protected void acbVehicleType_SearchClick(object sender, EventArgs e) { try { objVehicleTypelookup = new VehicleTypelookupDal(); DataSet dsVehicle = objVehicleTypelookup.GetVehicleType(acbVehicleType.SearchTextBox.Text); radgrdVehicleType.DataSource = dsVehicle; radgrdVehicleType.DataBind(); ViewState[vsVehicle] = dsVehicle; Reset(); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); if (rethrow) { throw ex; } } }