I'm using some listboxes which contain a string value as well as an itemdata which is storing the ID from a database.

My problem is, when the listbox.sorted = true, the itemdata is lost when I try to get it based on the listindex. ie, lstBox.itemdata(lstBox.listindex))

The sorted property of the listbox can only be set at design time. I can't find a way around this except to use a third party control such as VSFlexGrid.