Current filter:
                                You should refresh the page.
                                  • Hi DE team,

                                    Here is the screenshot of my property grid: https://snag.gy/izPnf6.jpg

                                    I want it to look like: https://snag.gy/XTSOQ2.jpg

                                    Three requirements basically,

                                    1. I want the collapse/expand button to look like -/+
                                    2. There should be a vertical border that connects the fields HandlInst and Algorithm. Currently the category "FIX Tags" breaks the row pattern
                                    3. The selected values of child rows should show up in the parent row value. In this case, "FIX Tags" row should show values "2, 5, hehe"

                                    Warm regards

                                • Dmitry Tor (DevExpress Support) 08.14.2019

                                  Hello,
                                  We need additional time to investigate the possibility of implementing such a functionality. Please bear with us. We will get back to you as soon as possible.

                                • Nawfal Hassan 08.14.2019

                                  Hey I don't want the necessarily want the parent row to be a category row. I like the look and feel of a normal row TBH.

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Nawfal,
                                Thank you for your patience.
                                To change the expand button, you can handle the CustomDrawTreeButton event. In this event handler, use the e.Cache.DrawImage to draw the desired image.
                                After that, handle the CustomDrawRowHeaderCell event to manually draw the header cell. To get the desired row values, you can use the GetCellValue method. Please review the Obtaining and Setting Cell Values help article for more information.
                                I have attached a simple project to illustrate this approach. Please try it and let me know if this solution meets your requirements.

                                • Nawfal Hassan 08.15.2019

                                  What I am asking is a simple Visual Studio like property grid.. See this link for e.g.: https://snag.gy/fvDbp8.jpg

                                  It has vertical borders, has a plus button, and also shows child row values in the parent row value column. Shouldn't there be a straightforward solution in DevExpress propertygrid control?

                                • Dmitry Tor (DevExpress Support) 08.16.2019

                                  If nested properties are used, our Property Grid works as you described. I have attached the modified sample to illustrate it. To change the expand button, you can use the approach from the comment above.
                                  If you faced a different behavior, would you please modify my sample to demonstrate the issue, so that we can investigate it and find a solution?

                                • Nawfal Hassan 08.16.2019

                                  That works, but I want the parent Value to only show some of the child Values.

                                  Something like this:

                                  [C#]
                                  - Dimension : 34, 56 Width : 34 Height : 56 Weight : 78

                                  In the above example,only width and height is shown across Dimension, not the weight. How to achieve this?

                                • Nawfal Hassan 08.16.2019

                                  Thanks Dmitry, I could solve it myself. I didnt need any nested Property or so. I could create child rows for a parent row in the designer itself by dragging child editor rows under parent editor row.

                                  Then I set the Parent row's FieldName to however  I wanted to format the value part.

                                  Your help on PropertyGrid CustomDrawTreeButton EventHandler did help though. Great tip! Thanks!

                                • Dmitry Tor (DevExpress Support) 08.16.2019

                                  It is great that you have found a suitable solution. Thank you for keeping us informed.
                                  If you need any further assistance with this, please do not hesitate to contact us.