Question

I've got a settings page built up in C# and I'd like to customize it in 2 ways.

  1. I'd like the different settings to be sorted in a particular order that is not alphabetic
  2. I'd like to enable/disable the editing of certain settings based off of the values of other settings.

Is it possible to do this with a settings page or do I need to design a custom control?

Thanks!

Was it helpful?

Solution

If you are using the PropertyGrid control you can read up on how to customise it here and here.

In order to display properties some of the time you can implement the ICustomTypeDescriptor interface by doing this you will be able to control the order and the list of properties to be edited dynamically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top