我是這樣做的
IList<CustomerInfo> IModel=.....;
this.bindingNavigator1.BindingSource = IModel;出現以下錯誤:
錯誤 3 型別 'System.Collections.Generic.IList<UiApp.Model.BasicInfo.CustomerInfo>' 不能隱含轉換為 'System.Windows.Forms.BindingSource'。已有明確轉換存在 (您是否漏掉了轉型?請教應該如何綁定!
IList<CustomerInfo> IModel=.....;
this.bindingNavigator1.BindingSource = IModel;出現以下錯誤:
錯誤 3 型別 'System.Collections.Generic.IList<UiApp.Model.BasicInfo.CustomerInfo>' 不能隱含轉換為 'System.Windows.Forms.BindingSource'。已有明確轉換存在 (您是否漏掉了轉型?請教應該如何綁定!
解决方案 »
- sql 2005 问题
- 删除文件里的东西?
- 对象锁定的问题.........如何得知对象是否锁定
- sheet中如何让各行显示不同的颜色,在线等
- DataAdapter和DataSet操作数据库问题
- 400分求助 窗体快速点击时误点新开窗口的按钮 怎么处理?
- 求不包含某字符串的正则表达式
- 我用TextBox做了个做了个多行输入的文本框,可是为什么在这里面输入C#的代码,只要保存就会出错呢?应该怎么处理?
- 各位找工们的朋友们注意了!小心上骗!给大家说说昨天我的经历!
- 关于线程得到结果,想在主窗体界面显示的问题。能人请进
- 请问如何去掉datagridview最左边自动生成的那列啊
- 违反并发性: updatecommand影响了预期 1 条记录中的 0 条
datasource = 实体类
bindingSource.datasource=IList<>類型;
bindingNavigator.bindingsource=bindingsource;
但是TreeView就不知道怎麼綁定才能實現期望的功能咯!!
請教大家實現此功能的思路。謝謝!!