kalo mau pake komponen standarnya vb, pake aja MSFlexGrid, dg sedikit kode
perulangan qita bisa buat seperti yg u mau.
ini source nya
'general declaration
Private Enum WarnaCell
Putih = &HFFFFFF
AbuAbu = &HEFEFEF
End Enum
Private Sub SetBackColor(ByVal Flex As MSFlexGrid, ByVal Warna As WarnaCell)
Dim i As Integer
With Flex
.Row = .Rows - 1
For i = 0 To Flex.Cols - 1
.Col = i
.CellBackColor = Warna
Next
End With
End Sub
Private Sub Form_Load()
Dim x As Integer
With MSFlexGrid1
.Rows = 1
.FixedCols = 0
.Cols = 6
For x = 1 To 5
.Rows = MSFlexGrid1.Rows + 1
If x Mod 2 = 0 Then
Call SetBackColor(MSFlexGrid1, Putih)
Else
Call SetBackColor(MSFlexGrid1, AbuAbu)
End If
Next
End With
End Sub
simbok_cahyo <[EMAIL PROTECTED]> wrote:
bisa banget, tapi musti pake list view yg bukan standar vb. klo saya
pake true dbgrid.
--- In [email protected], MUHAMMAD IRFAN <[EMAIL PROTECTED]>
wrote:
>
> Bisa gak listview diberi warna-warni pad baris-baris tertentu.
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
>
> [Non-text portions of this message have been removed]
>
Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]
Ikuti juga forum diskusi VB.net dengan
mengirim email kosong ke [EMAIL PROTECTED]
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "indoprog-vb" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[Non-text portions of this message have been removed]
Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]
Ikuti juga forum diskusi VB.net dengan
mengirim email kosong ke [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indoprog-vb/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/