Home Forums WinForms controls Xceed Grid for WinForms Back color of TreeLine region

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15012 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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 :

    <a href=”http://doc.xceedsoft.com/products/gridNET/doc/sources/ambient_properties.htm”>http://doc.xceedsoft.com/products/gridNET/doc/sources/ambient_properties.htm</a&gt;

    Imported from legacy forums. Posted by André (had 2874 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.