Search:
Namespaces
Discussions
.NET v1.1
Feedback
Datagrid that looks like 'Properties' windows in VS.Net
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.windowsforms
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Brett Robichaud
Can anyone point me at some sample code that creates a datagrid that looks
and acts something like the 'Properties' window in Visual Studio .Net?
Specifically I'm looking for a grid that has two columns where col1 is not
editable. Ideally col2 would support a number of different controls but I
understand the datagrid is kinda brain dead in that respect.
Anyone run across some sample code that implements something like this?
-Brett-
Reply to this message...
Matt Berther
Hello Brett,
Take a look at the
PropertyGrid
class...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp
This is strikingly similar to the Properties window in VS.NET.
--
Matt Berther
http://www.mattberther.com
[Original message clipped]
Reply to this message...
Brett (VIP)
Man, I can't believe there is actually a control to do exactly this and I
didn't see it. Silly me, I assumed all the controls showed up in the VStudio
toolbox in the designer.
Thanks for pointing this out. Looks like exactly what I need!
-Brett-
"Matt Berther" wrote:
[Original message clipped]
Reply to this message...
Matt Berther
Hello Brett,
You'll find numerous controls that dont show up in the designer... Right click on your toolbox and click Add Component. Anything thats unchecked in that list isnt in your toolbox. You'll find some neat toys there.
--
Matt Berther
http://www.mattberther.com
[Original message clipped]
Reply to this message...
Jared
You could use the property grid that you referenced. There is plenty of good
reading if you google it.
"Brett Robichaud" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Sijin Joseph
Here are some examples of using the
PropertyGrid
http://samples.gotdotnet.com/quickstart/winforms/doc/ControlRef/PropertyGridCtl.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp
http://www.thecodeproject.com/vb/net/Propertygrid_Editor.asp
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Brett Robichaud wrote:
[Original message clipped]
Reply to this message...
System.Windows.Forms.PropertyGrid
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com