Ticket Q379194
Visible to All Users

How to customize PropertyDefinitions when an object properties are unknown in design time

created 12 years ago

[DevExpress Support Team: CLONED FROM Q501861: PropertyGridControl and ExpandoObject]

  1. I need create combobox how can I do it?
  2. I need add tooltip text to every item in the PropertyGridControl

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

I suggest that you use the PropertyDefinitionsSource and PropertyDefinitionTemplateSelector properties to accomplish this task. PropertyDefinitionTemplateSelector allows selecting an appropriate property template for each item in the PropertyDefinitionsSource collection. To use a ComboBoxEdit for property editing, use the PropertyDefinition.CellTemplate property. You can use the same property to assign a tooltip.
I have modified the example from the Q501861: PropertyGridControl and ExpandoObject thread to demonstrate this approach.
Thanks,
Alexander Rus

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.