ComboBox赋值问题
 //初始化出库类型集合
        private void  InitOutputType()
        {
            cbOutputType.Items.Clear();
            string strWhere = " UpCodeVch='OutBillType' ";
            DataTable dt = dicBLL.GetList(strWhere);
            cbOutputType.DataSource = dt.DefaultView;           
            cbOutputType.ValueMember = "DicCodeVch";
            cbOutputType.DisplayMember = "DicNameVch";
        }
DataTable 运行后有两条数据

但不知道为什么一运行到cbOutputType.ValueMember = "DicCodeVch";就报错“SQLite error near "WHERE": syntax error”,求大家帮我看看,谢谢了
              
------解决方案--------------------断点拿到sql语句看看就知道错那了
------解决方案--------------------代码没有问题呀。你得到的datatable数据是怎么样的?