How to Bind ListBox using DataTable values from DataBase?

Muhilan
Posted by Muhilan under VB.NET category on | Views : 6920
Dim sqlstr As String = ""
sqlstr = "SELECT POM.POID,POM.PoNumber FROM POMAIN POM
Dim dt As DataTable
dt = GetDataTable(sqlstr)
lstPONumber.DisplayMember = "PONUMBER"
lstPONumber.ValueMember = "POID"
lstPONumber.DataSource = dt

Comments or Responses

Login to post response