I have duel listboxes. One for Unselected and One for Selected. I color the individual items based on a value from the dataset. The problem is that the listbox doesn't maintain its attributes on postback. :( So when a button is clicked to move an item from one box to the other the color attribute is lost. Is their a way to save listitem's color attribute ? Even if I have to readd them then do a check to color the second listbox. something like :
For i = ListView1.Items.Count - 1 To 0 Step -1
or = Color.Red Then 'moving red only
Haha..Any help would be appreciated.:D
'Here's how I set the color originally:
If ds.Tables(0).Rows.Count >0 then
.DataSource = ds
.DataTextField = "name"
.DataValueField = "someValue"
Dim i as Interger
For i = 0 to ds.Tables(0).Rows.Count -1
If da.Tables(0).Rows(i)("anotherValue") = True Then