I have a listbox that I want to change a value in by double clicking on a row in the list. I have two fields that I post from one listbox to another. I use the following code in the DblClickto event to change a "No" to "Yes" or "Yes" to "No".
I know I can AddItem or RemoveItem but there is no EditItem or anything like it that I can find.
This seems like a simple issue but I can't seem to find a solution. Note, I do not want to go back to the database to accomplish this. I just want to make the change in the listbox for the user to see before it is saved to the database.
The Value property of a ListBox (or a ComboBox) is different from the contents of the list.
For a Combo, the Value property (Read/Write) represents the contents of the TextBox part of the Combe (i.e. the part that's always visible and where you can type something). A ListBox does not have such a part, so it's value property is the value in its BoundColumn for the selected line (if a line is selected).
In the code you posted you were trying to modify the contents of the list itself (.Column(x, y)), which cannot be done that way.