Moving items in databound ListBox?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have worked out how to move items in ListBox, but it doesn't seems to work
when the ListBox is bound to a DataSource. It says "Cannot modift the Item
Collection when the DataSource property is set."

How can i move items when ListBox is populated using DataSource property?

thanx
 
Job,

Are you asking this question every week, I thought I answered the same
question from you last week?

Cor
 
Well the question i asked before was how to move items in ListBox when it is
not bound to a DataSource, i worked it out, but it is not working when
ListBox is bound to a DataSource.
 
Job,

You asked the same question on 13-8-2004
And I told that it depends on the sequence of the datasource.

For a listbox you have the choise of a lot of datasources.
You can make your own collection class
You can use a datatable etc, you can use a dataview with that.
Etc. etc.

And they have all there own methods to set them in a sequence.

Therefore this is difficult to answer.

However as I answered before, your items are represented in the way they
exist in the datassource.

I hope this helps anyway?

Cor
 
Back
Top