首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C# Winform中,BindingNavigator怎么綁定到IList<>數據源

2012-02-11 
C# Winform中,BindingNavigator如何綁定到IList數據源?我是這樣做的IList CustomerInfoIModel.....t

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 = 实体类

热点排行