>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