473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 B2 - CollectionEditor + EditorAttribute problem

Hello,
I have a simple issue : a collection class MyItems , derived from
CollectionBase, an editor class MyItemsEditor derived from
CollectionEditor, and a property DataItems of type MyItems, declared as :

[DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
[Editor(typeof(MyItemsEditor), typeof(UITypeEditor))]
public MyItems DataItems{
get { return _DataItems; }
set { _DataItems = value; }
}

Compiled with VS2003 it works OK. When I switched to 2005B2, the
problem is that in PropertyGrid it doesn't show anymore the ellipsis
button only if I declare the EditorAttribute as it follows:
[Editor(typeof(MyItemsEditor), typeof(MyItemsEditor))]

The problem is my MyItemsEditor has overriden the method
CreateNewItemTypes, so I should be able to add more types of object to
MyItems (derived from the same base class). In 2003 is working ok, in VS
2005 B2 it is not working anymore.

Anybody has a clue ?

Regards,
DM
Nov 17 '05 #1
1 1779

"Daniel Mihaita" <co*******@hotmail.com> wrote in message
news:OH****************@TK2MSFTNGP15.phx.gbl...
Hello,
I have a simple issue : a collection class MyItems , derived from
CollectionBase, an editor class MyItemsEditor derived from
CollectionEditor, and a property DataItems of type MyItems, declared as :

[DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
[Editor(typeof(MyItemsEditor), typeof(UITypeEditor))]
public MyItems DataItems{
get { return _DataItems; }
set { _DataItems = value; }
}

Compiled with VS2003 it works OK. When I switched to 2005B2, the problem
is that in PropertyGrid it doesn't show anymore the ellipsis button only
if I declare the EditorAttribute as it follows:
[Editor(typeof(MyItemsEditor), typeof(MyItemsEditor))]

The problem is my MyItemsEditor has overriden the method
CreateNewItemTypes, so I should be able to add more types of object to
MyItems (derived from the same base class). In 2003 is working ok, in VS
2005 B2 it is not working anymore.

Anybody has a clue ?

Regards,
DM

Please post to the Beta2 forum http://forums.microsoft.com/msdn/ , this NG
is for the released product only, you might also file an issue in
http://lab.msdn.microsoft.com/produc...k/default.aspx
Willy.
Nov 17 '05 #2

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

Similar topics

2
492
by: m. pollack | last post by:
Hi all I've been using the PropertyGrid to allow the user to edit a class object at runtime. The class object contains a custom strongly-typed collection, and I have written a subclass of...
0
1335
by: m. pollack | last post by:
<I've reposted this here as it was slipping away over the horizon on the C# group Hi all, I've been writing an application that uses a class object (call it Element) that I need to expose to...
0
1586
by: m. pollack | last post by:
Hi all I've been writing an application that uses a class object (call it Element) that I need to expose to the user at runtime for editing. To do this, I've been using the PropertyGrid control....
0
1204
by: m. pollack | last post by:
<I've reposted this as it was slipping away over the horizon Hi all, I've been writing an application that uses a class object (call it Element) that I need to expose to the user at runtime for...
0
1540
by: juststarter | last post by:
Hello all, here is my problem. I am using a property grid control (in a vb.net 2003 project) in which two properties are exposed : "editorStyle" and "events". The first property is used to select...
0
1575
by: Andreas | last post by:
Hi! I'm using a custom collection with custom items to be edited with a custom CollectionEditor. This set of functionality is to be a part of a plugin for a SharpDevelop-based application. The...
2
2369
by: Henry J. | last post by:
Has anybody run into this index out range exception when opening and then closing a collectionEditor from within a PropertyGrid? I use PropertyGrid to edit configurations in my application. One...
0
1119
by: Bardo | last post by:
Hi all, I am having an issue with a custom CollectionEditor. My scenario is as follows: I have a base type TypeA. I also have a TypeACollection. The TypeACollection has an Editor attribute of...
7
3785
by: colin | last post by:
Hi, I have my property editor wich uses the pop up collection editor for arrays etc, but i have had to use a generic wrapper for the elements in some types of collections. although the editing...
0
7280
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
7330
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
6991
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
7460
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
5578
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
5014
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
4672
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...
0
1512
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 ...
1
736
muto222
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.