I have a Master/Detail grid. The detail rows are indented, and the ShowTreeLine property is true.
When I set the BackColor of the Master row to some non-white color, and set the BackColor of the DetailRow to white, then the background area around the tree lines is also set to the BackColor of the Master row. In other words, the space immediately to the left of my detail row, where the tree lines are drawn, is colored the same as the master row above it.
Is there a way to control the background color of the treeline region? Or to force it to be not colored (transparent, or white)?
Imported from legacy forums. Posted by AlphaGuys (had 1823 views)
When setting the BackColor of a DataRow which has a DetailGrid attached to it, the SideMargin.BackColor of the DetailGrid will be changed to the same color as the master row. If you want to SideMargin to be of another color, you will need to set the SideMargin.BackColor property.
This is because the grid offers properties which are ambient, that is, if a property is not explicitly set, it will take the value of its parent, if the parent has been explicitly set. Here is a topic form our online help documentation which gives more details on ambientness :