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