Binding data to Infragistic grid

Posts   
 
    
Rishi
User
Posts: 69
Joined: 31-Oct-2011
# Posted on: 01-Nov-2011 16:53:54   

Hi,

Does anybody know what is the best way to bind data to grid. i dont want to use data table.

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 01-Nov-2011 18:32:49   

LLBLGen has these LLBLGenDataSource(2) containers that bind your EntityCollections/TypedViews/TypedLists automatically to any boundable object, including Grids, that includes infragistics. It's like using the well known MS ObjectDataSource. Plase see the following documentation links: - LLBLGenProDataSource2 for Adapter - LLBLGenProDataSource for SelfServicing

David Elizondo | LLBLGen Support Team
NMackay
User
Posts: 138
Joined: 31-Oct-2011
# Posted on: 11-Nov-2011 15:31:19   

Rishi wrote:

Hi,

Does anybody know what is the best way to bind data to grid. i dont want to use data table.

Thanks

Works fine for Telerik WPF datagrids too:


Dim QF As New QueryFactory
            Dim Query = QF.Vessel.Where(VesselFields.TypeId = "FERRY").OrderBy(VesselFields.VeselName.Ascending)
            _radgrid_output.ItemsSource = oAdapter.FetchQuery(Query)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 11-Nov-2011 16:00:56   

Web: use datasource control or bind directly. Winforms: bind directly or through BindingSource, it should work out of the box, infragistics has implemented to proper code some years ago to make this work properly.

Frans Bouma | Lead developer LLBLGen Pro