Hi, I need to be able to resize RowLayout band when column header is resized in synch with other bands. I got it working for the most parts but need to know how to get size of the level indent in hierarchical grids
Also what's the best way to figure out what's the indent level of a band is i.e. is it a child, grand child, grand-grand-grand child of Band 0
Thanks Mike, that's what I did anyway.
Brian Fallon"]UltraGridBand also exposes an Index property, so you can determine its "level" using this property, i.e., the zero-level band is the root band, Bands[1] is its child, etc.
Just to clarify a little, this will only work if there are no sibling bands. So you probably need to write a routine to walk up the ParentBand chain of the band and count the number of bands to get a more accurate level.
UltraGridBand exposes an Indentation property, which is -1 by default. If you query the property and it returns that value, you can assume the default, whatever that is (I don't see an IndentationResolved property so I don't think the resolved value is exposed anywhere.
UltraGridBand also exposes an Index property, so you can determine its "level" using this property, i.e., the zero-level band is the root band, Bands[1] is its child, etc.