Is there something wrong in my code?
BTW, li is a ListViewItem. Thank you.Code:(i%2==0)?li.BackColor=Color.White:li.BackColor=Color.OldLace;
edit: The error is "Only assignment, call, increment, decrement, and new object expressions can be used as a statement"





Reply With Quote