how to change text color an item in listview C#?
-
i need to change text color an item in listview on C# i can change text color in listview on properties but that change all items in listview i don't want change text color all items but i need to change an item or some items how can i do it? please give some hints or tips to me thanks a lot....^^
-
i need to change text color an item in listview on C# i can change text color in listview on properties but that change all items in listview i don't want change text color all items but i need to change an item or some items how can i do it? please give some hints or tips to me thanks a lot....^^
The ListViewItem item in the Items collection should have a BackColor property which can be set.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego. -
i need to change text color an item in listview on C# i can change text color in listview on properties but that change all items in listview i don't want change text color all items but i need to change an item or some items how can i do it? please give some hints or tips to me thanks a lot....^^
This will colour the first item Red and it's first sub item blue:
listView1.Items[0].UseItemStyleForSubItems = false;
listView1.Items[0].ForeColor = System.Drawing.Color.Red;
listView1.Items[0].SubItems[1].ForeColor = System.Drawing.Color.Blue;Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)