Reputation: 867
I'm using the PropertyGrid control from DevExpress in multiple forms. I have a ImageComboBoxEdit with the same settings (same ImageList, ItemList and multiple settings) on all of the forms.
I want all of them to have the same settings on the forms and don't want to go through all the forms to add a new option in the Combo.
What would be the best practices to implement this? I've tried inheriting the RepositoryItem with limited success. Another idea would be to create a static helper class to initialize the default ImageComboBoxEdit with the right settings.
What would you prefer? Any other ideas?
Gunnar Steinn
Upvotes: 0
Views: 478
Reputation: 11376
One more idea is to use the comboBox on a UserControl. Thus, you will have to adjust it only once and then use this UserControl on as many forms as you want.
Upvotes: 1