问一个基本的问题
我在Load里通过下面的Code取得dt的数据,怎样把它设置到ComboBoxCell下拉数据里呀
Dim stConnectionString As String = String.Empty
stConnectionString &= "Data Source = AAA;"
stConnectionString &= "Initial Catalog = BBB;"
stConnectionString &= "Integrated Security = SSPI;"
Dim cSqlConnection As New System.Data.SqlClient.SqlConnection(stConnectionString)
cSqlConnection.Open()
Dim da As New SqlClient.SqlDataAdapter("SELECT * FROM MShire", cSqlConnection)
Dim dt As New DataTable
da.Fill(dt) |
|