I've been combing documentation, the API's and this forum, but I am coming up a little short for my situation.
I have a DataSet with 3 DataTables.
ParentDataTable
ChildOneDataTable
ChildTwoDataTable
Each ChildDataTable is tied back to the ParentDataTable with a relation.
I would like to specify to show the the data in a heirarchical view between the ParentDataTable and ChildTwoDataTable.
I am setting the WebGrid.DataSource property in the code behind and then calling the DataBind Method.
How do I specify to show two bands and bind to the appropriate datatables in the dataset?
The version I'm using is NetAdvantage 3.5.
elamberton,
By the way, me thinks you should consider upgrading. None of these ideas may work on a tool that is five years old. Back in 2003 (My guess based on the version being NetAdvantage 3.5) the Infragistics libraries were good for their day - but, not so good based on 2008. I am not and Infragistics employee. And, I don't sell any products.
Roger Bogh said:By the way, me thinks you should consider upgrading. None of these ideas may work on a tool that is five years old. Back in 2003 (My guess based on the version being NetAdvantage 3.5) the Infragistics libraries were good for their day - but, not so good based on 2008. I am not and Infragistics employee. And, I don't sell any products.
Sorry I was unclear with the version, I am using "NetAdvantage for .NET 2008 Vol. 1 CLR 3.5".
I'm going to try to implement changing the relationship in the DataSet right now. Thanks for pointing me in that direction.
Not a problem. One thing you might want to test for is removing the relationship. I seem to remember having a problem with that process. I do remember having to test for the existence of the relationship and then having issues with constraints. Kinda yukky. Regretfully, I can't find the code.
Good luck.
Changing the relationships in the DataSet did the trick. The grid view now displays the tables as expected.
Thanks Roger.