Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
making a column span more then one column?
posted

I am using the PROPERTYGRID CS example as a base for my own "Property Grid" control.  When displaying in Category view, I would like the row that contains the category to span both the name and value columns.  Here is a screen shot:

As you can see, the "ZZZ *** NOT VISIBLE *** ZZZ" is truncated while there is empty space to the right because of the "value" column.  I would like to see the text for this type of column to expand both columns.  Can it be done, if so now?

Sam

 

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The only solution I can think of off the top of my head is to use the IUIElementCreationFilter interface. If the AfterCreateChildElements method, handle the case for parent is NodeSelectableAreaUIElement, and when the node is one of these category nodes, find the UltraTreeNodeCellUIElement for each column, and adjust the Rect for each so that the Name cell spans across the whole node, and the other one has zero width.

Children
No Data