473,508 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamc entries for PropertyGrid TypeConverter?

I've successfully set up a PropertyGrid using custom editors and type
converters. They work very well. However, I have a spot where I want to
generate the TypeConverter converter entries on the fly (from a
database). So far, I can't seem to find a way to do this. The
PropertyGrid wants to reference a TYPE, not an array of strings. You
can make a custom type that inherits StringConverter and overloads
GetStandardValues, and that's fine. But those types are fixed. It still
references the TYPE, not an object of the type. (An object of the type
would obviously let me return a custom list by storing the list in an
internal ArrayList or similar.)

The methods in the inherited StringConverter aren't static, so unless
there's some weird magic going on, clearly the PropertyGrid is
instantiating an object of its own of the type I provide, then calling
the overloaded methods. Is there any way I can trick it, and give it an
object instead of a type?

Thanks,
Chad

Jan 24 '06 #1
0 1137

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

Similar topics

3
6037
by: Dave Girvitz | last post by:
I have a PropertyGrid (Windows Forms App) based component that uses TypeConverters to generate ranges of acceptable values for properties. The idea was that I could download the key/value pairs...
1
24628
by: Daniel | last post by:
How do I use a combobox in a propertygrid without using enum ? Any suggestions?
0
1772
by: Paul Talbot | last post by:
Hi, I'm after help using reflection with the propertygrid. I am creating a dynamic class and putting it into a propertygrid. For simple textboxes, static content dropdowns and datetime...
0
1519
by: movieknight | last post by:
Hi, I have a class which I am feeding to the propertygrid, and I am exposing a Mesh object from my class for the propertygrid to display. I want the propertygrid to show the values (when you...
5
3000
by: Lee | last post by:
Hi, Using the propertygrid, is it possible to have a user selectable 'unit of measure' for a field. For example, I am looking at using a propertygrid for defining inputs into a calculation. ...
7
3832
by: Ron M. Newman | last post by:
Hi, Can the native PropertyGrid accept dynamic properties? ones that are not pre-compiled into a class and don't have those thingies attached to properties? Can I just instantiate a property...
4
3280
by: Tugrul HELVACI | last post by:
Changing DisplayNames of my properties using PropertyGrid component, how ?? I'm using Delphi 2006 and I have a class defination like this: TPerson = class fPersonName : String;...
4
18805
by: phcmi | last post by:
I have a PropertyGrid question. My task is to replace a legacy dialog box presentation with a modern one. The dialog itself allows the user to set configuration settings in our application, so...
3
5175
by: Redivivus | last post by:
Hi Ho to use dropdown in propertygrid with values from database? Lets say i have table ITEMS and columns ID, NAME Now i want to select id, name from items and display those values in...
0
7132
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
7336
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,...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.