.net - How to dynamically change ListView color (skip one line) -
using vb.net , tried many times achieve couldn't worked.
i need achieve below on listview
dim myrow string each myrow in listview listview1.backcolor = color.blue next
you can use mod
operator.
dim mylistview listview dim myrow listviewitem dim rowcnt integer = 0 each myrow in mylistview.items if rowcnt mod 2 = 0 myrow.backcolor = color.blue else myrow.backcolor = color.gray end if rowcnt = rowcnt + 1 next
Comments
Post a Comment