private void RoleForm_Load(object sender, EventArgs e) { _roleBll = new RoleBussiness(); RefleshGrid(); AuthoryBussiness _authory = new AuthoryBussiness(); cmbAuthory.DataSource = _authory.GetAllBLL(); cmbAuthory.ValueMember = "ID"; cmbAuthory.DisplayMember = "AuthoryName"; }
public void RefleshGrid() { try { List <Authory> authoryList = _authoryBll.GetAllBLL(); dgvAuthoryNameList.DataSource = null; dgvAuthoryNameList.DataSource = authoryList; } catch (Exception ex) { MessageBox.Show(ex.Message); } }