Hi,
I have a grid with 3 bands. How can I set my child band to start from particular position of parent band column?
Here example
COL1 COL2 COL3 COL4 COL5 COL6 COL7 -- Band 0
COL3 COL4 COL5 COL6 COL7 -- Band 1
COL4 COL5 COL6 COL7 -- Band 2
Thanks
Hello,
The UltraGrid does not have functionality built into it at this time to indent to a specific column like this. There is a Band.Indentation property which will indent a band by the specified pixel count, but the UltraGrid will still align the columns and stretch the parent band's first column to accommodate this indentation.
The best way child band columns can be aligned to later columns of the parent band is to create empty columns within the child band and set their visible position first. Please take a look at the attached sample, in which I create dummy columns at the front of the child bands to align data columns to subsequent parent band columns. In order to make the empty columns obviously empty I deactivated the cell's activation and disabled the header.
Please let me know if I can further assist you.