Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Parent child in 2 ultragrids
posted

 

I am a bit confused about this one; say I have a dataset (ds) with 2 tables and a relationship named "SellerDeal"

I want the parent grid to drive the child grid, how do I bind to the relationship?

ultragrid1.datasource=ds.tables("Seller")

ultragrid2.datasource=????? 

 

  • 469350
    Verified Answer
    Offline posted

     You need to set both the DataSource and DataMember. So you are better off using SetDataBinding, like so:  

    ultragrid1.datasource=SetDataBinding(ds, "Seller");

    ultragrid2.datasource=SetDataBinding(ds, "SellerDeal");