trialer
Well-known member
- Joined
- Oct 4, 2010
- Messages
- 64
- Programming Experience
- 1-3
here's my
error:
it will show this in listbox1
System.DataRowView
any one knows to shows records in a listbox,,.
VB.NET:
Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
Dim cmd As New SqlCommand
Dim da As New SqlDataAdapter
Dim dt As New DataTable
Dim s As New BindingSource
Connect()
cmd.Connection = con
cmd.CommandText = ("SELECT Reg_No,CustomerID,Inst_Date,Package,Account_Stat,Title,Name,Address FROM table_subsprofile ORDER BY CustomerID ASC")
da.SelectCommand = cmd
da.Fill(dt)
s.DataSource = dt
ListBox1.DataSource = s
Disconnect()
End Sub
error:
it will show this in listbox1
System.DataRowView
any one knows to shows records in a listbox,,.