I have a hierarchical webgrid setup, but the Band(1) datatable has more columns than Band(0). As a result, Band(1) only shows the number of columns that will fit under Band(0).
How do I get the grid to show all the columns in Band(0) even if it extends beyond Band(0)?
Thanks!
Chris
The first thing I'd try would be to widen the last column in Band(0), or add a wide-but-empty column to the far right of Band(0) so that my Band(0) wasn't too wide for my Band(1).
Thanks, Edward!
As I work more with the grid, I'm thinking it might not be the best solution for this problem. Aside from the original problem I posted, I'm also trying to setup a grid that shows differing column on the various band(1) bands.
For example, say there are 5 band(0) rows that represent a list clothes in a catalog. Band(1) would represent open/shipped quantities of each size available, but the size ranges will differ from product to product.
E.g.
Shirt Row (band(0) | name | material
...open quantities size row (band(1) | Size 1 | Size 2 | Size 3
...Shipped quantities size row (band(1) | Size 1 | Size 2 | Size 3
...Open size row (band(1) | Size 5 | Size6 | Size 7 | Size 8 | Size 9| Size 10
...Shipped size row (band(1) | Size 5 | Size6 | Size 7 | Size 8 | Size 9 | Size 10
I was thinking of building a dataset & tables with relationships to get the heirarchical levels, but I don't see how I can get the band(1) rows to have different column headers with their differing sizes.
Well, I've been brooding over this all morning and still haven't come up with what I'm looking for.
Here's a couple ideas I was playing with:
1. add/build a separate grid for each band(0) record so that the band(1) can have as many columns as it needs for that data
2. create some custom controls with textboxes that don't use a grid at all and create them as needed by passing in the data in the constructor
3. Abandon the initial UI design and spawn modal window for the band(1) data for each band(0) record.
4. Somehow do it with a Repeater (combined with #2)
I think #1 is probably a bad idea as I may end up with many band(0) records and subsequently many grids on the page. I anticiapte poor performance on rendering.
Has anyone floated any other ideas?
One last thing: you're not the first person to be looking for that kind of structure, so please let us know if you come up with a clever solution. (Or, for that matter, a not-so-clever one. ;-)
You're right. The WebGrid is designed with the assumption that the records in any given band are structured the same throughout the grid.
Sorry I can't help with that one.
I don't see how I can have varying numbers of columns in the band(1) band. In other words, band(1) under the first band(0) row may have 5 columns, but the band(1) under the second band(0) row may have 10 columns.
The solution I offered works regardless of differences in the structure of the different bands.
For more info on what worked for me, see these threads:
http://forums.infragistics.com/forums/p/2132/15540.aspx#15540
http://forums.infragistics.com/forums/p/2139/15349.aspx#15349