??????
Dim str As String = "select * from Employees "
scon.Open()
scon.Close()
Dim da As New SqlDataAdapter(str, scon)
Dim ds As New DataSet
da.Fill(ds, "Employees ")
Me.DataGridView1.DataSource = ds.Tables( "Employees ")
Me.ComboBox1.DataBindings.Add( "Text ", ds.Tables( "Employees "), "Employees.lastname ") ' ' '这里报错
为什么在vb.net 中我这样写不对哦..
我想把数据绑定到combobox中去
那么在vb.net 中该怎么来写
------解决方案--------------------scon.Open()
scon.Close()
为什么打开又关了?这样能取出数据来???