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
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