473,472 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PropertyGrid and ArrayList

I have a class:

public class ZType : ICustomTypeDescriptor
{
private ArrayList el = new ArrayList();

[Editor(typeof(MyCustomEditorTypes), typeof(UITypeEditor)), Browsable(true),
Category("Data")]
public ArrayList Elements
{
get { return this.el; }
set { this.el = value; }
}

.....
}

I'm placing this into a propertyGrid and for some machines the setter fails.
Any ideeas?
Thanks
Nov 17 '05 #1
2 2172
it is rather strange situation.
what do you mean by "strange situation"? are there any exceptions. Is it
possible that the setter is called an value of other type then ArrayList is
specified?

If you have PropertyDescriptors - check what returns GetPropertyType of the
PropertyDescriptor.

--
Vadym Stetsyak aka Vadmyst

"Marius" <Ma****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
I have a class:

public class ZType : ICustomTypeDescriptor
{
private ArrayList el = new ArrayList();

[Editor(typeof(MyCustomEditorTypes), typeof(UITypeEditor)), Browsable(true), Category("Data")]
public ArrayList Elements
{
get { return this.el; }
set { this.el = value; }
}

.....
}

I'm placing this into a propertyGrid and for some machines the setter fails. Any ideeas?
Thanks

Nov 17 '05 #2
The setter is never called on some machines. That's very strange, why it olny
working for some machines???
Nov 17 '05 #3

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

Similar topics

7
by: siddhiash | last post by:
Hi Friends I want to add PasswordChar Property which shows ****** for string which I type in PropertyGrid Control. Regards, Siddharth
5
by: Lance | last post by:
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user...
4
by: ljlevend | last post by:
Is there any way to prevent a PropertyGrid from allowing the user to expand the elements of an array? For properties that are of type ArrayList or CollectionBase a PropertyGrid only allows the...
8
by: ljlevend2 | last post by:
If a property's type is an array and the property is exposed in a PropertyGrid, then the property can be expanded so that the user can view and edit the array elements. But, I've noticed that if...
0
by: taskswap | last post by:
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...
6
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
4
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
by: =?Utf-8?B?U3RldmVU?= | last post by:
Is it possible to hide a row within a PropertyGrid based upon the boolean value of another row within the PropertyGrid? I am using VS2005 with .NET Frameworks 2.0. -- ----------- Thanks,...
4
by: csharpula csharp | last post by:
Hello, I am using ErrorProvider for PropertyGrid control and in case of error I am doing the following: SetError(grdInfo, _msgError); The problem is the the icon is shown near the...
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
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...
1
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
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
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
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.