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