Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Linuxmania Linuxmania is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 392
Rep Power: 14
Linuxmania mempunyai hidup yang Normal
Default [ASK] menampilkan date di listview vb.net

ada yang tau ga?



gw mau menampilan isi tabel di listview, nah kalo yg tipe datanya text bisa tapi kalo yg date muncul msgbox gini "Overload resolution failed because ...."



nih kode yg gw bikin



Try

sql = "select * from transaksi order by tanggal asc"

myCmd.CommandText = sql

myCmd.Connection = koneksi

'myDA.SelectCommand = myCmd

myDR = myCmd.ExecuteReader



lvTransaksi.Items.Clear()

While (myDR.Read())

With lvTransaksi.Items.Add(myDR("ID_tran"))

.SubItems.Add(myDR("nama_toko"))

.SubItems.add(myDR("tanggal")) 'bagian ini nih yang bermasalah

End With

End While

myDR.Close()

Catch ex As Exception

MessageBox.Show(ex.Message)

End Try



tolong dibantu para master..



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 03:35 AM.


no new posts