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
945
UltraGrid With Multiple Bands Using Business Logic Layer
posted

I am new to Infragistics, and I'm admittedly not where I should be with my ADO.NET skills.  We're trying to decide whether we should purchase the controls (we're in the trial period).  I'll present a simplified version of our scenario:

We have an application that displays information about clients and matters (there's a parent-child relationship between clients and matters, which relate to clients).  I'd like to display a simple grid that lists clients on one band, and then matters for each client on a band that expands below each client.  I've successfully used your help materials and tutorials to setup a simple example that employs a binding source, a data set with a client table and a matter table, and a schema class to relate the two tables.

In our application, we make use of a business logic layer, so we employ some level of misdirection and don't necessarily want to present a data set; instead, I'd like to present a list or dictionary of domain class objects ("Client", "Matter"), but have the grid behave the same with the bands and the child bands.

Can someone please offer some guidance, or at least point me to the right place in the documentation?

Thanks.

  • 469350
    Suggested Answer
    Offline posted

    Hi,

    This is pretty easy. The simplest thing to do would be to use generic. So let's say you have a couple of class already defined called Client and Matter. You could create a BindingList<Client> and use this as the grid's DataSource. That takes care of displaying the client band. The grid will display each item in the list as a row and the public properties of the Client object will be columns.

    For the child data, what you do is create a public property on the Client object which returns a BindingList<Matter>. The grid will display the Matters under each client as a list of child rows and the public properties of the Matter class determine the columns for the child band.