Hi,
I am using Adapter/VS2005/C#/ASP.Net.
I have dragged the LLBLGenProDataSource2 onto my webform and binded it to my parent gridview (say touroperators). I then have a child gridview, brochures.
I prefetch all the data needed to display touroperators in the parent gridview and when a touroperator is selected I display the brochures for that touroperator.
Now the problem I am having is that gridview2 (child) i load when a gridview1_selectedindexchange event is fired. I get the datakey and and using this load all data associated with this touroperator.
So hence I can get t.Brochure to get the collection of brochures. All good so far.
Now when I try and associate this with the LLBLGenProDataSource2_2 datasource by doing this:
LLBLGenProDataSource2_2 = t.Brochure;
I get the following error:
Cannot implicitly convert type 'AEM.CMS.DAL.HelperClasses.EntityCollection<AEM.CMS.DAL.EntityClasses.BrochureEntity>' to 'SD.LLBLGen.Pro.ORMSupportClasses.LLBLGenProDataSource2'
Now thr problem is that t.Brochure returns an EntityCollection that uses generics but it appears that LLBLGENProDataSource2 does not support this.
How/what is the best way to achieve what I am trying to do.
Hameed.