Is there control I can add to a windows form that

2020-04-14 08:19发布

问题:

I want to add something similar to the the properties window in Visual Studio into my form application. Basically a grid that has a label in the first column and a editable value in the second column. I can't seem to find something like it. Any examples of what to use and/how how to use it would be awesome.

回答1:

The control you are looking for is the PropertyGrid.

I recommend reading Getting the Most Out of the .NET Framework PropertyGrid Control for details on how to work with this control fully, including customizing it for your types.