Question How to change the Forecolor of a Listview subitem

evolet10000

Active member
Joined
Nov 22, 2012
Messages
40
Programming Experience
Beginner
i have a listview with 5 columns or should i say subitems,

now what im trying to achieve is.... to change the fore color of column 1(subitems)
where

i try the ff. codes

ListViewUSER_LOAD_SAI_DATA.Items.Subitems(0).Forecolor = Color.Red

but it change the forecolor of all values in my listview,what i need is just 1 column of the listview to be change.,

many many thanks,
 
Each ListViewItem has a UseItemStyleForSubItems property that is True by default. If you want use different styles for the item and each subitem then you must set that property to False.
 
Back
Top