Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To 'Move the pointer' in a DataSet
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01386929
Message ID:
01386938
Views:
58
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform