日期:2014-05-19  浏览次数:20870 次

C# Winform中,BindingNavigator如何綁定到IList<>數據源?
我是這樣做的
IList <CustomerInfo>   IModel=.....;
this.bindingNavigator1.BindingSource   =   IModel;

出現以下錯誤:
錯誤 3 型別   'System.Collections.Generic.IList <UiApp.Model.BasicInfo.CustomerInfo> '   不能隱含轉換為   'System.Windows.Forms.BindingSource '。已有明確轉換存在   (您是否漏掉了轉型?

請教應該如何綁定!




------解决方案--------------------
不认识繁体字
------解决方案--------------------
你可以这样的,在bindingnavigator的属性中
datasource = 实体类