0

Propertygrid

here as i have mentioned in the snapshot, i want to give any backgroundcolor to the mandatory property. do we have anyway to achieve this.

Thank in advance!!!

Piyush
  • 5,145
  • 16
  • 49
  • 71
  • As an alternative, put a `*` in display name of the field and also add a validation to the property to check value and throw an exception if value is null. – Reza Aghaei Dec 29 '15 at 09:28
  • i have already added * in display name but can we change the * size and color? – Piyush Dec 29 '15 at 11:18
  • 1
    No we can't. The feature you need, is a feature that is required for a data entry form and property grid is not designed for this goal. Why you need to use property grid this way? If using `*` is not enough for you, you can create your own object editor. For example you can simply use a `TableLayoutPanel` and show properties there in suitable controls and edit them. – Reza Aghaei Dec 29 '15 at 11:28

0 Answers0