Exemple #1
0
        public void llenaCombo()
        {
            
            LibrosRef.Service1Client cliente = new LibrosRef.Service1Client();
            ds = cliente.ObtenerListaAutor();

            //cmb_libros.Items.Clear();

            cmb_libros.DataContext = ds.Tables[0];
            cmb_libros.SelectedValuePath = ds.Tables[0].Columns["AutorID"].ToString();
            
            cmb_libros.DisplayMemberPath = ds.Tables[0].Columns["Nombre"].ToString();
        }