public void LoadUnits() { List <UnitMasterModel> lstUnits = objUnitBl.GetListofUnits(); foreach (UnitMasterModel objunit in lstUnits) { cbxMainunit.Properties.Items.Add(objunit.UnitName); cbxSubunit.Properties.Items.Add(objunit.UnitName); } }
private void UnitmasterList_Load(object sender, EventArgs e) { List <eSunSpeedDomain.UnitMasterModel> lstUnits = objunitbl.GetListofUnits(); dvgUnitmasterList.DataSource = lstUnits; }