Mostrando entradas con la etiqueta DevExpress. Mostrar todas las entradas
Mostrando entradas con la etiqueta DevExpress. Mostrar todas las entradas

martes, 26 de noviembre de 2019

Llenar control DevExpress.XtraBars.BarEditItem (How to bind it to a data source)


public UCOpciones()
        {
            InitializeComponent();
            LISTAPARALLENARCOMBO dataAreaList = new LISTAPARALLENARCOMBO();
            KernelOperation.DataAreabynbAlias(LISTAPARALLENARCOMBO, Program.UserInfo.Username);      

            foreach(var empresa in LISTAPARALLENARCOMBO)
            {
                (barEditItemEmpresa.Edit as RepositoryItemComboBox).Items.Add(empresa.cveCia);
            }  
         //SELECCIONAR VALOR     
            barEditItemEmpresa.EditValue = Program.cveCiaCurrent == null ?  Program.UserInfo.CompanyCode : Program.cveCiaCurrent;
          
            Recargar();
        }