Moving datalistitems

T

tshad

I want to be able to allow my users to move DataListItems up and down
without going back to the database. I assumed that your DataListItems were
only pointers ( I am probably wrong here) and would be able to move the
pointers around, but that doesn't seem to be the case.

I tried this:

Dim oItem as DataListItem
oItem = oList.Items(1)
oList.Items(1) = oList.Items(2)
oList.Items(2) = oItem

which works until you get the 3rd line which gives you an error:

Compiler Error Message: BC30526: Property 'Item' is 'ReadOnly'.

Is there a way to do this?

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top