1
我已經綁定了ACCDB到組合框 ,但它不能在當前數據綁定,它只能如果綁定表不能結合ACCDB到組合框在WPF
例如第一條記錄的第一個字符,記錄是:
ABCD XYZ IJKL
組合框將顯示 一個 b ç d
如何綁定當前的數據?
Dim connStr As String = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=album.accdb"
Dim sql As String = "Select type from album"
Dim dataAdapter As New OleDb.OleDbDataAdapter(sql, connStr)
Dim album As New DataTable
dataAdapter.Fill(album)
DataContext = album
<ComboBox Name="type" ItemsSource="{Binding Path=type}" />