A simple question from a beginner at WinGrids ... I create a wingrid that should have 2 bands with a parent child relationship. I am pulling from 2 different views that I have create a foreign key relationship with in the dataset. I create the grid, it finds both bands but when I run it, I get no child records. The + sign is there for each row but when I click it, it shows no child rows. What am I missing here? This seems to something simple and stupid.
It sounds like the binding manager can't locate any child rows. By default, the grid will show the '+' sign without checking to see if there are actually any child rows, for performance reasons, so if it doesn't find any child rows, none will be displayed. Are you sure that there is a valid link from the parent row to the child row?
-Matt
I am pretty sure the link is valid. I changed from using views to trying it with my base tables that have the foreign key relationship setup. I cant get any child rows to show. I know this has to be something easy I am missing, but cant figure it out. I cant get any grid to show child records, and I've tried different tables and different relationships.
No authority here, but in the online docs there's a developer's guide section. Click Toolset->Controls & Components->Wingrid->Using WIngrid->WOrking WIth Data->Binding to a Hierarchical datasource.
Course things don't always work out. Have you tried messing arouond with the Datatable property - setting it to the top table in your dataset? Seems I remember that worked for me a while back while I was playing around.
Bill
thanks ... it looks like I wasnt loading the child data adapter during form load, so thus no data was there. I knew it was something simple