473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Where Is The Property Control?

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?
Nov 20 '05 #1
7 3816
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
"Daryll SHatz" <ds****@cox.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Nov 20 '05 #2
Hello,

"Daryll SHatz" <ds****@cox.net> schrieb:
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.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Daryll,
You mean System.Windows.Forms.PropertyGrid?

Hope this helps
Jay

"Daryll SHatz" <ds****@cox.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Nov 20 '05 #4
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'"
"Daryll SHatz" <ds****@cox.net> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
: 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?
:
:
Nov 20 '05 #5
Where do I find the PropertyGrid???
"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
Daryll,
You mean System.Windows.Forms.PropertyGrid?

Hope this helps
Jay

"Daryll SHatz" <ds****@cox.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?


Nov 20 '05 #6
Hello,

"Daryll SHatz" <ds****@cox.net> schrieb:
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.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #7
Daryll,
As Herfried & Tom stated, it is part of the .NET Framework in both .NET 1.0
& 1.1, it is normally not on your toolbox, so you have to add it.

Heres an article that describes some of what you can do with it:
http://msdn.microsoft.com/library/de...ngpropgrid.asp

http://msdn.microsoft.com/library/de...classtopic.asp

Hope this helps
Jay

"Daryll SHatz" <ds****@cox.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Where do I find the PropertyGrid???
"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message news:ev**************@TK2MSFTNGP12.phx.gbl...
Daryll,
You mean System.Windows.Forms.PropertyGrid?

Hope this helps
Jay

"Daryll SHatz" <ds****@cox.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?



Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Kirk | last post by:
In VS 6 there was a UserMode property of the AmbientProperty that told you if you were executing in design mode or run-time. I cannot find this anywhere in .Net 2003. Can anyone tell me where it is...
1
by: Tom Louchbaum | last post by:
Can someonw pls tell me how to reference the Where clause made by the VBA statement DoCmd.OPENREPORT "Report",acviewpreview,,where as a control within the Report itself? Thanks.
0
by: Brian Young | last post by:
Hi all. I'm using the Property Grid control in a control to manage a windows service we have developed here. The windows service runs a set of other jobs that need to be managed. The control...
3
by: Marty McFly | last post by:
Hello, I have a control class that inherits from System.Web.UI.WebControls.Button. When I drag this control from the "My User Controls" tab in the toolbox onto the form, I want it to reflect the...
2
by: Benton | last post by:
Hi there, I'm creating a custom server control, inheriting from TextBox. It has this AsDateTime property that returns the textbox contents converted to the nullable DateTime data type, as...
3
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a property based on CollectionBase class. like the following one : //------- XGrid.cs file --------------// public ColumnsCollection Columns {
8
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've...
10
by: Derek Hart | last post by:
I can set focus to my property grid by using propgrid.Focus - but how can I set the default property that is always first? Or just set focus to the default property? Can this be done?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.