【发布时间】:2009-07-18 15:01:31
【问题描述】:
我有 2 个课程,即 CustomerOrder 和 Customer 课程
有一个订单集合的引用。
我使用主详细信息BindingSources。
我的问题是当我使用延迟加载模式时
对于订单,我的详细信息 BindingSource 未更新。
用户界面
BindingSource1.datasource = GetCustomers();
BindingSource2.DataMember = "Orders";
BindingSource2.datasource = BindingsSource1;
所以在我的datagridView1 点击事件中
if (customer.orders != null)
{
customer.Orders = LoadOrders();
}
感谢您对此提供的任何帮助。
【问题讨论】:
-
这是 .NET 吗?听起来像 WinForms,但请这样标记。
-
您尝试重新分配它吗?
标签: c# .net winforms business-objects bindingsource