Where Is The Property Control?

  • Thread starter Thread starter Daryll SHatz
  • Start date Start date
D

Daryll SHatz

What is the control that MS uses for their Property Pages (of a control at
design time)? It looks like it would be a DataGrid control of some sort.
If it is, how do they invert the columns so the headings arevertical (rows)?
Is this type of control available?
 
You could create one, not sure what the default is. If you create a custom
control and it's properties are browsable, they'll show up in the designer
automatically.

However, let's say I have a DataTable called TextBox with two column.

Row1 Column 0 Value = (About) Column1 value string.Empty

Row2 Column0 Value = Appearances

Row3 Column0Value = Text, Column1 = TextBox1


To simulate the expand collapse, you could make another datatable(s) and use
a DataRelation to relate them

Then, create a grid, take of the hearders and bind it. You'll even get the
little + marks.

However there probably is a control out there, I just don't know of it.

Cheers,

Bill
 
Hello,

Daryll SHatz said:
What is the control that MS uses for their Property
Pages (of a control at design time)? [...]
Is this type of control available?

Have a look at the 'System.Windows.Forms.PropertyGrid' class.
 
Daryll,
You mean System.Windows.Forms.PropertyGrid?

Hope this helps
Jay
 
The class is System.Windows.Forms.PropertyGrid, but is not in your toolbox
by default. You can easily add it:

VS2003: Right click toolbox and choose Add/Remove Items...
VS2002: Something similar


--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


: What is the control that MS uses for their Property Pages (of a control at
: design time)? It looks like it would be a DataGrid control of some sort.
: If it is, how do they invert the columns so the headings arevertical
(rows)?
: Is this type of control available?
:
:
 
Hello,

Daryll SHatz said:
Where do I find the PropertyGrid???

It's a class located in the 'System.Windows.Forms' namespace. Have a look
at Tom's reply on how to add it to the toolbox.
 
Back
Top