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
Titre:
How To 'Move the pointer' in a DataSet
Divers
Thread ID:
01386929
Message ID:
01386929
Vues:
93
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?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform