I have done all this.
- Set the AllowDelete="True" (so the Delete button is visible)
- Set the AllowAutomaticUpdates="True" (so the DataSource is updated automatically)
- Set the AutoPostBackOnDelete="True".
- Make sure that the DataSource has a DeleteCommand set.
I am using an SqlDataSource pointing to my table that has a primary key on the ID and userid fields.
The delete button displays in the listbox at design time but when I run the app there is no delete button. I have tried changing the width of the listbox but that did not help.
Is there something else I am missing that needs to be done?