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
80
UltraGrid Dynamically create bands from Relational Database
posted

Dear All; 

I am using v 10.3 , I have to tables ( Owners and cars ) 

I want to display all the cars for each owner as the following : 

Owner1---Address1

        car1

        car2

        car3

Owner2 -----Address2

       car3

 

I want to use the Bands< shell I use defferent dataset to bind for band and other dataset to bind for the bandchild or make a loop while the sqldatareader to read the data and create the rows dynamically ???

kindly some links or code samples or tips will appreciated. 

regards...

Parents
  • 469350
    Offline posted

    Hi,

    In order to display this in the grid, you need a single DataSource that contains all of the data. You cannot bind the grid to two different data sources.

    It seems like this should be pretty easy to do. If you have two tables, all you need to do is create a DataSet that contains both tables and create a Relationship between them.

    If you cannot do that, then an alternative would be to use the UltraDataSource to create the structure and load it on-demand from wherever you want. There is a sample of using the Load-On-Demand functionality installed with NetAdvantage (assuming you chose to install the samples). It's in the WinGrid Samples explorer and it's called "Virtual Mode".

Reply Children