public void LoadDataAndBindGrid() { try { materialDal = new MaterialDal(); List <MaterialEntity> materials = materialDal.GetMaterialsByType(SysCodeConstant.MATERIAL_TYPE_COMB); bindingSource1.DataSource = materials; } catch (Exception ex) { MsgBox.Err(ex.Message); } }
public void LoadDataAndBindGrid() { List <MaterialEntity> materials = materialDal.GetMaterialsByType(SysCodeConstant.MATERIAL_TYPE_PACK); bindingSource1.DataSource = materials; }