I'm gonna set an alternate color to my ListView rows.
I saw this link but I'm using .Net Framework 3.5 SP1 , so I can't use it.
I've used the following code , but it has problem with ListView Sorting
ListViewItem newListViewItem = new ListViewItem(
new string[] { item.name.ToString(),
item.code.ToString() });
newListViewItem.BackColor = new Color(240,240,240);
newListViewItem.UseItemStyleForSubItems = true;
newListViewItem.Font = new Font("Tahoma", 9);
listView1.Items.Add(newListViewItem);
Could you please guide me how I can do it?