Can anyone please help me implement alternate row color in the listview control... It would be more helpful if it's in a step by step approach.... Thanks in advance.
a{k}{3}{V}{1}{n} Saturday, May 12, 2007 3:58 PM
when you add items to your listview control, just count rows and on every second row change the background color.
like this:
if (row++ % 2 == 0) item.BackColor = Color.Beige;
xkelt Saturday, May 12, 2007 4:50 PM
when you add items to your listview control, just count rows and on every second row change the background color.