Home > Net >  C # for help, each master propertyGrid how to implement all element attributes displayed in the list
C # for help, each master propertyGrid how to implement all element attributes displayed in the list

Time:09-22



PropertyGrid show the appearance of figure 1, the list elements as shown in figure 2

CodePudding user response:

This control in the way...
The layout of the whole...
PropertyGrid associated is a line, you want to write a class, and then reveal its agcn in propertyGrid agen, class, minval... These attributes,
Have a list, storing the list below, you points in a project, propertyGrid display its properties,,,,

Really trouble, it is better to use directly dbgrid,

CodePudding user response:

The
reference response: 1/f, clear dawn month
the control of the way...
The layout of the whole...
PropertyGrid associated is a line, you want to write a class, and then reveal its agcn in propertyGrid agen, class, minval... These attributes,
Have a list, storing the list below, you points in a project, propertyGrid display its properties,,,,

Really trouble, it is better to use directly dbgrid,

I already have ag this class now, I put in list , properpyGrid question now is how to associate the list and then Ann according to class classification show ag attribute?

CodePudding user response:

With third party treelistview

CodePudding user response:

Propertygrid should only be associated with an object
If you need to show multiple objects, these objects can be written to an object, each object need to use [TypeConverter (typeof (ExpandableObjectConverter)]
  •  Tags:  
  • C#
  • Related