【发布时间】:2016-08-15 10:40:39
【问题描述】:
目前我正在使用 Microsoft Access 来保存数据,它将绑定到 WPF 组合框。下面的代码几乎可以正常工作。
oleDBCommand.CommandText =
"SELECT "
+ "table.[Col1] & ' - ' & table.[Col2] As COl1_Col2, table.[Col3] " +
"FROM "
+ "table_1 " +
"WHERE "
+ "(table_1.[col3] = '" + comboboxSelection.Text + "' OR table.[col3] = 'All') ";
我遇到的问题是组合框在其中显示空白。我可以知道如何删除它吗?是通过 Access Query 还是 ComboBox 属性?
【问题讨论】: