Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

General Ledger Style Listview

Status
Not open for further replies.

sazd1

Technical User
Dec 28, 2009
6
BR
I am using VB express 2008.
How I can create a General Ledger Style Listview with alternating colourd rows.
Thanks
 
Some code like this should work for you:
Code:
        For i As Integer = 1 To Me.ListView1.Items.Count
            If i Mod 2 = 0 Then
                Me.ListView1.Items(i - 1).BackColor = Color.PaleGreen
            Else
                Me.ListView1.Items(i - 1).BackColor = Color.White
            End If
        Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top