Hello,
When I use a master details two IG ultraGrids in one from it works fine. But when I put the master grid in one form and the details grid in another form, and pass the main datasource as a parameter to the second form it dosen't work!
Thanks,
Yossy
Yossy,
Does this work when you put the two grids in the same form? It sounds like it's an issue with the .NET BindingManager not knowing that it should be getting the child records for the currently active master table on the first form; you may want to pass in the BindingContext of the master grid/form and use that as the child grid's BindingContext.
-Matt
It sounds like perhaps the proper notifications aren't being sent to the grid so it doesn't know to refresh itself, but I really can't say at this point through the forums since I cannot determine the cause. If the Refresh approach does not provide enough control for you, your best bet is to submit a small sample to Developer Support.
The Refresh forces any bound controls to repopulate their data. Since I'm not really familiar with LINQ, I can't really comment on what could be changed in order to prevent the refresh, aside from the fact that the IBindingList aspect is what would make this automated.
It's possible that the grid in the child form is not getting a notification that the data source has changed, since the BindingManager is not aware of the issue (though if your TextBox is on the same form, this isn't the same problem then). You could try calling Refresh on the bindings, i.e.:
((CurrencyManager)this.BindingContext[this.dataSource]).Refresh();
Alternatively, it's possible that your data source doesn't implement IBindingList, in which case the BindingManager (and anything bound to it) won't know that anything has changed.