Hi
I have two UltraWinGrids with 2 different object bind datasource, they are master-detail relationship, however, I dont know how to realize their relation in code.
I find a class call DataRelation on internet, but I am guessing it is only suitable if I use dataset, or datatable for binding method.
I could not find any event suitable to do the refresh manually either, actually i find one - afterSelectedChange, but row selector is disable in my case, so it is useless.
Please kindly give some suggestion.
Regards
Bryan
alexhuang said: I have two UltraWinGrids with 2 different object bind datasource, they are master-detail relationship, however, I dont know how to realize their relation in code.
Hi Brian, Thank you for your reply.
I did use band at many place. But for this case, it was a user requirement to create master - detail tables with two grids.
Secondly, in this case, the master class does not has a List<Child> Records property.
Hi Bryan,
In order to do something like this, you must have a DataSource which has a parent-child relationship - at least if you want the relationship binding to work automatically.
If you do not have a DataSet or some other class that supports relational data, then you could implement this manually by binding the "master" grid and then trapping the AfterRowActivate event and populating some data source an binding the "child" grid at that point.