Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.
Sub filllistview() Try 'creatconn() cn.Open() Dim cmd As OleDbCommand = New OleDbCommand("Select * from Customers", cn) dr = cmd.ExecuteReader() While dr.Read() ListView1.Items.Add(dr(0).ToString()) ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(dr(1)) End While Catch ex As Exception System.Windows.Forms.MessageBox.Show(ex.Message) Finally dr.Close() cn.Close() End Try End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|ASP.Net problem with GridView using filters and checkboxes on lines||9||42|
|C# rename a class and update all references efficiently||6||53|
|I need to clear List Box in MVVM panel.||15||27|
|Binding a GridView in ASP.NET(VB) using Using statements||6||16|
Join the community of 500,000 technology professionals and ask your questions.