Unbound Hierarchical Webgrid

3 replies. Last post: November 20, 2009 2:45 AM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mark SilkaMember

I have an SQL View and I wish to make an Unbound Hierarchical Webgrid from it.

The table is as such

InvoiceID   CustomerID  InvoiceDate  LineItemNumber ItemCat1 ItemCat2 ItemCat3 ItemCat4

It is basically and invoice detail table with invoice header info on each line.

This is because I do searches on both items in the header table and detail table.

This one table speeds up my search.

 

Now, I want to use an unbound hierarchical grid and fill it with these items.

When I do a the client action for Grid.Refresh(); in which grid procedure do I set up the parent and child table rows?

I am using Visual Basic for my programming language.

Here is an example

 

The search is for Dates between 11/1/2009-11/18/2009 with a matching ItemCat1

 

InvoiceID   CustomerID  InvoiceDate  LineItemNumber ItemCat1 ItemCat2 ItemCat3 ItemCat4

1234           99                11/18/2009      1                        x                                     

1234           99                11/18/2009      3                        x

3456           1001            11/16/2009      5                        x

4554           11                 11/12/2009     1                        x

4554           11                  11/12/2009    2

 

The webgrid would like look this

 

InvoiceID  CustomerID  InvoiceDate

1234                99             11/6/2009

                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4

                               1                      x

                               3                      x

InvoiceID  CustomerID  InvoiceDate

3456                1001             11/18/2009

                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4

                               5                     x

InvoiceID  CustomerID  InvoiceDate

4554               11             11/12/2009

                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4

                               1                      x

                               2                      x

 

Thank you

 

All times are GMT -5. The time now is 11:25 AM.
Previous Next