示例#1
0
        private void textEdit1_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
        {
            if (e.NewValue == e.OldValue || e.NewValue.ToString().Length < 5)
            {
                return;
            }

            IEnumerable <SOCIONEGOCIO> sociosNegocio = null;

            sociosNegocio = facturaServicio.buscarSociosDeNegocio(e.NewValue.ToString(), CredencialUsuario.getInstancia().getEmpresaSeleccionada().CODIGOEMPRESA);
            gridControlBusqueda.DataSource = sociosNegocio.ToList();
        }