Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To 'Move the pointer' in a DataSet
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01386929
Message ID:
01386938
Vues:
57
>I have a DataSet bound to a listbox. When the user selects an item in the listbox, I want to display the description in a textbox which is below the list.
>
>I have:
>
>
>lstBackups.DataSource = _dsBackups.Tables["Backups"];
>lstBackups.DisplayMember = _dsBackups.Tables["Backups"].Columns[1].ColumnName;
>lstBackups.ValueMember = _dsBackups.Tables["Backups"].Columns[0].ColumnName;
>
>txtDescription.DataBindings.Add("Text", _dsBackups, "Backups.Description");
>
>
>The bindings work fine, but when I select a new list item, the description does not change. What am I missing?

Can you just set the text value in the IndexChanged event (or whatever event it is)?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform