StrataFrame Forum

Infragistics ultrawebgrid and SF businessbindingsource

http://forum.strataframe.net/Topic13842.aspx

By Hugo R. Figueroa - 1/30/2008

Can somebody please let me know how to set an Infragistics webgrid as a Hierarchical grid using two BusinessBindingSource controls? (for example Customers and Orders).

Thanks

By Hugo R. Figueroa - 1/30/2008

Well, I figured it out thanks to this post: http://forum.strataframe.net/Topic2965-7-1.aspx?Highlight=master+detail

And this was the answer I needed: (I am copying and pasting the example.)

Dim ds As New DataSet
Me.CalcClientBO.FillAll()
Me.ClientInfoBO.FillAll()

ds.Tables.Add(CalcClientBO.CurrentDataTable)
ds.Tables.Add(ClientInfoBO.CurrentDataTable)
ds.Relations.Add(
"ListRelation", ds.Tables(0).Columns("ClientKey"), ds.Tables(1).Columns("ClientKey"), False)

grdList.DataSource = ds.Tables(0)
grdList.LevelTree.Nodes.Add(
"ListRelation", gvListDtl)
grdList.RefreshDataSource()

Initially I didn't find it , because I was looking for webgrid and infragistics posts, and this was in the Winforms posts and related to devexpress, but the problem was the same.

Hehe

Thanks

Hugo

By StrataFrame Team - 1/31/2008

Glad you found an answer Smile