I have parent-child relationship A-B that Infragistics by default shows like this
+ A col1 col2 col3
B col1 col2 col 3
I want to make changes to this default display.
1. Get rid of the indentation i.e B is right below A. That way col1 would be below col1 from the other band and col2 under col2, etc
B col1 col2 col3
2. Replace "+" with something like a down chevron icon and "-" with a up chevron icon
3. Remove the dotted lines (of the tree structure) that links the two bands
First of all, set the indentation to 0. I think it works best if you set it for both bands. This will also, I believe, hide the dotted line row connectors.
ultraGrid1.DisplayLayout.Bands["A"].Indentation = 0; ultraGrid1.DisplayLayout.Bands["B"].Indentation = 0;
ultraGrid1.DisplayLayout.Bands["A"].Indentation = 0;
ultraGrid1.DisplayLayout.Bands["B"].Indentation = 0;
I have a similar requirement (but using the UltraWebGrid) - I would like the columns of my child bands to line up with the parent band. However, I have 4 bands, and when I set the indentation to 0, only the first 2 bands are displayed. Any idea why this might be or what I need to do to get the desired effect?
I have also tried setting the indentation style to flat, but this seems to make the child bands appear a fraction to the left of the parent.
You should post UltraWebGrid questions in the UltraWbeGrid forum.