Pregunta

Tengo un página de configuración construida en C # y me gustaría personalizarlo de 2 maneras.

  1. Me gustaría que los diferentes ajustes se clasificarán en un orden particular que no sea alfabético
  2. Me gustaría habilitar / deshabilitar la edición de ciertas configuraciones basadas en los valores de otras configuraciones.

    ¿Es posible hacerlo con una página de configuración o necesito diseñar un control personalizado?

    ¡Gracias!

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top