llblgen pro equivalent

Posts   
 
    
rapido
User
Posts: 45
Joined: 10-Apr-2009
# Posted on: 10-May-2009 01:32:07   

pls help me translate the equivalent of this code in llblgen pro, i tried with the lookup edit of devexpress but i can't get it working.the VB2008 code is working, i might misspell what i typed here but i'm just concerned on the llblgen pro code equivalent.thanks in advance.

dim dvmain as new Dataview dim dvdropdown as new Dataview

Private sub InitData( ) dim ds as new Dataset dim connectionstring="Provider.......nwind .etc" Dim dbadapter as new OLeDBDataAdapter("Select * from Order Details,connectionstring") dbadapter.Fill(ds,"Order Details") Dim dbadapter as new OLeDBDataAdapter("Select * from products,connectionstring") dbadapter.Fill(ds,"Products") Dim dvm as new DataviewManager(ds) dvmain =dvm.CreateDataview(ds.tables[order details]") dvdropdown=dvm.createdataview(ds.tables"[Products]")

rapido
User
Posts: 45
Joined: 10-Apr-2009
# Posted on: 10-May-2009 02:55:56   

the above code was used as:

gridLookup.DataBindings.Add("EditValue",dvmain,"ProductID") gridLookup.Properties.DataSource=dvdropdown gridLookup.Properties.DisplayMember="ProductName") gridLookup.Properties.ValueMember="ProductID")

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-May-2009 21:00:07   

Using SelfServicing or Adapter TemplateSet? WinForms or WebForms? LLBLGen Pro version?

Have you checked the databinding examples at the examples section(http://llblgen.com/pages/examples.aspx)?

David Elizondo | LLBLGen Support Team
rapido
User
Posts: 45
Joined: 10-Apr-2009
# Posted on: 11-May-2009 01:14:04   

Thanks daelmo Its for winforms, and the template is self servicing, i dont know the version of LLBLGEN Pro. i just downloaded the trial version from LLBLGEN site. By the way, is LLLBL gen compatible with Devexpress controls? what i know is that LLBLGEN can be used with any third party controls

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 11-May-2009 09:28:19   

Please read this: Databinding with Windows Forms