> Can you show me where to set this? I don't understand where to use it. I
> tried the following
[quoted text clipped - 20 lines]
>>>
>>> Gary
I think he meant to set it to False. The default value is True. So instead
of:
ListView1.Items.Item(currentRow).UseItemStyleForSubItems = True
you should do:
ListView1.Items.Item(currentRow).UseItemStyleForSubItems = False
I think you need to set it before you add the subitems - after the line:
ListView1.Items.Add(myreader.Item("ProductID"))
But I'm not sure if you *absolutely* have to set it before adding the
subitems. Ofcourse, the above will definitely work.
hope that helps..
Imran.
> Here is the code I have
>
> ListView1.Items.Add(myreader.Item("ProductID"))
ListView1.Items.Item(currentRow).SubItems.Add(myreader.Item("ProductName"))
ListView1.Items.Item(currentRow).SubItems.Add(myreader.Item("UnitsInStock"))
ListView1.Items.Item(currentRow).SubItems.Add(myreader.Item("UnitsOnOrder"))
ListView1.Items.Item(currentRow).SubItems.Add(myreader.Item("ReorderLevel"))
ListView1.Items.Item(currentRow).SubItems.Add(myreader.Item("Discontinued"))
> '
> ******************************************************************
[quoted text clipped - 41 lines]
> >>>
> >>> Gary
Gary Paris - 01 Oct 2004 20:30 GMT
Thanks for your help. It worked.
Gary
>I think he meant to set it to False. The default value is True. So instead
> of:
[quoted text clipped - 75 lines]
>> >>>
>> >>> Gary
DS - 14 Dec 2004 00:51 GMT
guys, do you know, how to keep BackColor fro items with Selected=true ??
this colors are working fine, but when user selects item, he always see one
blue backgound color and one white text :-(
all colors are lost in selection
> I think he meant to set it to False. The default value is True. So instead
> of:
[quoted text clipped - 74 lines]
> > >>>
> > >>> Gary