VB.NET - how to add item to listview control? - Asked By Ralph Acido on 07-Feb-06 11:47 PM

i need your help.. how to add the records coming form my database in a listview control in vb.net? or any other control that is possible to display the records of a particular table ? thank you..

here is a link - Asked By mv ark on 08-Feb-06 12:00 AM

http://www.vbcity.com/forums/faq.asp?fid=15&cat=TreeView%2FListView

DatagridView - Asked By drammer _ on 08-Feb-06 12:23 AM

[Quote] or any other control that is possible to display the records of a particular table ? 

You may also use DataGridView to have a spreadsheet style of viewing records from a database.

first you need - Asked By Venkat K on 08-Feb-06 01:42 AM

to get the records to datareader / dataset

ListView1.ListItems.Add , ,dr.item(0)
ListView1.ListItems.Add , ,dr.item(1)

To remove use this
ListView1.ListItems.Remove(1)