Using C# PropertyGrids 
Author Message
 Using C# PropertyGrids

Hi all.

I am currently investigating the use of the standard PropertyGrid that comes
with Beta2 .NET

I (we) have made pretty good progress with determining behaviour using the
documentation and experimenting although this is taking a lot of time. One
of the biggest problems is the documentation on this subject. There is a
great lack of support at present (or examples) on the details of the
PropertyGrid. For example, the documentation does not state which attributes
can be used by the grid (e.g. "Category" attribute separates property's into
collapsable sections in the grid ... the discovery of this was by sheer luck
really).

So, if there is anyone who knows of an online tutorial on this subject, that
would be excellent. Otherwise, would you be able to answer these outstanding
questions:

           - How do you change the Label text for a property? At present it
will only set to the actual variable name ... not what is wanted!
           - Is it possible to handle input validation myself, instead of
having the automatic validation done from the grid? For example, if in a
number field I type in a char, I want to handle the exception myself,
instead of the automatic response.
            - How do I get icons to appear in the value editor section of
the grid? For example, when dealing with selecting colors, I would like a
box of the selected colour to be displayed.
            - Generally, how do I control the value editing section. For
example, if I want a ComboBox or some other component to apprear in the
grid, how do I do that?

There are actually a lot more questions, but I would hate to have to list
them all. As I said, ANY help would be greatly appreciated on this subject.

Many thanks in advance,

Matthew Tester.

--

Matthew Tester

Software Engineer
MARKEM Technologies Ltd




Sun, 04 Apr 2004 23:15:50 GMT  
 Using C# PropertyGrids
A good article on it was posted on C# Today ...
But the sad part is C# Today is a paid site...

Regards,
Saurabh Nandu
www.MasterCSharp.com
Master C#, the easy way...



Mon, 05 Apr 2004 01:13:40 GMT  
 Using C# PropertyGrids
Hi,

Thanks for that, C# Today seems to be at a reasonable price too.

Also, for others who may be having similar problems, I also recently found a
relevant article in MSDN. The reason I didn't find it before was because
they call it a "Property Browser". If name was kept consistant then maybe I
would have spotted it earlier. Anyway, minor gripe.

Title: "Make Your Components Really RAD With the Microsoft Visual Studio
.NET Property Browser"
URL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndo...
ml/vsnetpropbrow.asp

Hope this will be as usful to everyone else as it promises to be for me.

Many Thanks,
--

Matthew Tester

Software Engineer
MARKEM Technologies Ltd



Quote:
> A good article on it was posted on C# Today ...
> But the sad part is C# Today is a paid site...

> Regards,
> Saurabh Nandu
> www.MasterCSharp.com
> Master C#, the easy way...



Mon, 05 Apr 2004 18:43:17 GMT  
 Using C# PropertyGrids
I am also investigating the PropertyGrid, and that MSDN article is
really what I am looking for. But still I haven't found out how to
change the label text for a property. I would prefer something like
"My Property Name" instead of a variable name "MyPropertyName". Is
there a simple way to achieve this?

Thanks
Patrik Ekengren

Quote:

> Also, for others who may be having similar problems, I also recently found a
> relevant article in MSDN. The reason I didn't find it before was because
> they call it a "Property Browser". If name was kept consistant then maybe I
> would have spotted it earlier. Anyway, minor gripe.

> Title: "Make Your Components Really RAD With the Microsoft Visual Studio
> .NET Property Browser"
> URL:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndo...
> ml/vsnetpropbrow.asp



Tue, 06 Apr 2004 16:37:56 GMT  
 Using C# PropertyGrids
Hi,
Still haven't found out how to change the property label as yet, but there
are some ideas
knocking around (can't go into details myself!)

But a quick request. The sample code that is meant to be included in the
article I posted earlier
is missing. I click on the link at the top but it returns a blank page. Just
me or is this the case with
everyone else?

Thanks
Matt


Quote:
> I am also investigating the PropertyGrid, and that MSDN article is
> really what I am looking for. But still I haven't found out how to
> change the label text for a property. I would prefer something like
> "My Property Name" instead of a variable name "MyPropertyName". Is
> there a simple way to achieve this?

> Thanks
> Patrik Ekengren




Quote:
> > Also, for others who may be having similar problems, I also recently
found a
> > relevant article in MSDN. The reason I didn't find it before was because
> > they call it a "Property Browser". If name was kept consistant then
maybe I
> > would have spotted it earlier. Anyway, minor gripe.

> > Title: "Make Your Components Really RAD With the Microsoft Visual Studio
> > .NET Property Browser"
> > URL:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndo...
Quote:
> > ml/vsnetpropbrow.asp



Tue, 06 Apr 2004 22:49:16 GMT  
 Using C# PropertyGrids
Hi.
Need further help!

I am trying to add a new tab to the PropertyGrid, but can't seem to get it
to display. I know that I need to create a custom Propertygrid through
inheritance so that I can override CreatePropertyTab( ) method. I have done
this and it will create a new MyPropertyTab (inherited from PropertyTab).

But how do I get it to display? Still not sure how the PropertyTabAttribute
fits in to all of this. I could really do with the "Funky Button" demo code
that is meant to be part of the "RAD development" article mentioned
previously! Anyone any ideas?

Thanks again.
Matt


Quote:
> Hi all.

> I am currently investigating the use of the standard PropertyGrid that
comes
> with Beta2 .NET

> I (we) have made pretty good progress with determining behaviour using the
> documentation and experimenting although this is taking a lot of time. One
> of the biggest problems is the documentation on this subject. There is a
> great lack of support at present (or examples) on the details of the
> PropertyGrid. For example, the documentation does not state which
attributes
> can be used by the grid (e.g. "Category" attribute separates property's
into
> collapsable sections in the grid ... the discovery of this was by sheer
luck
> really).

> So, if there is anyone who knows of an online tutorial on this subject,
that
> would be excellent. Otherwise, would you be able to answer these
outstanding
> questions:

>            - How do you change the Label text for a property? At present
it
> will only set to the actual variable name ... not what is wanted!
>            - Is it possible to handle input validation myself, instead of
> having the automatic validation done from the grid? For example, if in a
> number field I type in a char, I want to handle the exception myself,
> instead of the automatic response.
>             - How do I get icons to appear in the value editor section of
> the grid? For example, when dealing with selecting colors, I would like a
> box of the selected colour to be displayed.
>             - Generally, how do I control the value editing section. For
> example, if I want a ComboBox or some other component to apprear in the
> grid, how do I do that?

> There are actually a lot more questions, but I would hate to have to list
> them all. As I said, ANY help would be greatly appreciated on this
subject.

> Many thanks in advance,

> Matthew Tester.

> --

> Matthew Tester

> Software Engineer
> MARKEM Technologies Ltd





Fri, 09 Apr 2004 22:02:11 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Populating a PropertyGrid using reflected types.

2. Pleading for fresh eyes on my problem using a PropertyGrid with a Singleton

3. C# , i am trying to create a file on the server using C#

4. Automatic refreshing values in PropertyGrid

5. A problem about the PropertyGrid.

6. Resetting PropertyGrid value to old value

7. PropertyGrid and Managed C++

8. PropertyGrid and hiding properties

9. PropertyGrid DefaultValueAttribute

10. PropertyGrid DefaultValueAttribute

11. Adding property into PropertyGrid at runtime

12. How to Add My own Property Tab in the PropertyGrid for Button Control

 

 
Powered by phpBB® Forum Software