SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Sample with Northwind Customers-Orders

rated by 0 users
This post has 1 Reply | 0 Followers

Top 200 Contributor
Posts 7
Robert Posted: 09-27-2005 11:52 PM

I use BEWizard to generate the Paladin Classes for only two tables of Northwind.

I use your code in samplekit to display the tables in one datagrid:

CustomersList cl = new CustomersList();

BusinessComponent bc = new BusinessComponent();

bc.Populate(cl,true);

bc.RegisterPopulateChildHandler(cl);

dataGrid1.DataSource = null;

dataGrid1.DataSource = cl;

bc.UnRegisterPopulateChildHandler(cl);

 

The first table Customer is OK in the datagrid.

Also in each row there is a tree for "Orders" table.

But when I click over Orders the datagrid is empty.

(I can send you both the profiles.bin and solution files if you told me how).

Any idea about what I am doing wrong?

Thanks in advance

Robert

Top 10 Contributor
Posts 1,626

Hi Robert,

Remove the following line:

bc.UnRegisterPopulateChildHandler(cl);

Move that to a place where you do clean-up when your form is ready to exit Smile [:)]

Software development made easy with Paladin RAD Framework. Save some trees, use Stickies.NET
Page 1 of 1 (2 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems