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

Home Posts Topics Members FAQ

Editor attribute on IListSource derived class?

I am attempting to add an Editor attribute to an IListSource derived class
(specifically it's a typed DataSet). It appears that IListSource over rules
any Editor attribute. Is there any way that I can get my Editor attribute
to be used?

Any help is greatly appreciated!

Eric J. Smith
Nov 15 '05 #1
10 2343

Hi Eric,

Thanks for posting in this group.
Which property of DataSet you want to apply Editor attribute?
Which Editor you want to apply on the property? Arrayeditor or something
else?
If you apply this attribute, what error do you get?
Please show me more detailed information, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #2
Jeffrey,

I am attempting to apply the attribute to the DataSet itself. What I am
attempting to do is have the typed DataSet be a property that shows up in
the PropertyGrid control and in the property grid be able to browse to an
XML file to load that typed DataSet from. I know how to create the editor
for what I want to do, but the problem is that my Editor attribute is just
completely ignored. From what I can tell, since DataSet implement
IListSource, the property grid is checking for this first and then using the
editor for it, but what I want is to override this bahavior in this case and
force it to use my Editor.

Thanks,
Eric J. Smith

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:$6**************@cpmsftngxa07.phx.gbl...

Hi Eric,

Thanks for posting in this group.
Which property of DataSet you want to apply Editor attribute?
Which Editor you want to apply on the property? Arrayeditor or something
else?
If you apply this attribute, what error do you get?
Please show me more detailed information, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #3

Hi Eric,

Thanks for your feedback.
I have partially understand your problem. Your component contains a dataset
and exposes it through a property.
You want to use a browser dialog to select a xml file then load its content
into the dataset.
While the dataset has implemented IListSource interface, so it has it
default design time editor. You have created a customized editor for
dataset, but you do not know how to give up the dataset's default editor
and use the new editor you create?

If I misunderstand you, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #4
Jeffrey,

You have it correct. Is there anything that I can do?

Eric J. Smith

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:IC**************@cpmsftngxa07.phx.gbl...

Hi Eric,

Thanks for your feedback.
I have partially understand your problem. Your component contains a dataset and exposes it through a property.
You want to use a browser dialog to select a xml file then load its content into the dataset.
While the dataset has implemented IListSource interface, so it has it
default design time editor. You have created a customized editor for
dataset, but you do not know how to give up the dataset's default editor
and use the new editor you create?

If I misunderstand you, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #5

Hi Eric,

If you implemented a editor(Inherited from
System.Drawing.Design.UITypeEditor), and apply this through EditorAttribute
on the component's property(which expose the dataset). I think it will
override the default editor style.
Have you tried this?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #6
Jeffrey,

Yes, I have tried this. This is exactly what I'm asking you. When I apply
the EditorAttribute to an IListSource derived object, the EditorAttribute
seems to be ignored. I simply need to know if there is any way (even a
hack) to get around this. I really want to be able to use a DataSet derived
class as a property in my property grid and, in my context, the little drop
down editor that IListSource seems to invoke is useless. I need to be able
to specify a custom UITypeEditor derived EditorAttribute.

Someone please help! :-)

Thanks,
Eric J. Smith

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:$O**************@cpmsftngxa07.phx.gbl...

Hi Eric,

If you implemented a editor(Inherited from
System.Drawing.Design.UITypeEditor), and apply this through EditorAttribute on the component's property(which expose the dataset). I think it will
override the default editor style.
Have you tried this?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #7

Hi Eric,

I will do some research for this. And I will reply you ASAP.
Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #8

Hi Eric,

The EditorAttribute should take effect on dataset property, I think there
may be something wrong with your code.
Can you show me how your code implement this?(Both your customized
UITypeEditor and how you applied on dataset property)

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #9

Hi Eric,

I have received your code, I will do some research into.
Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #10

Hi Eric,

I am strange to find that I also can not replace the dataset's default type
editor, I will try to find the reason.
Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #11

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

Similar topics

2
by: Gabriel Genellina | last post by:
Hi In the following code sample, I have: - a Worker class, which could have a lot of methods and attributes. In particular, it has a 'bar' attribute. This class can be modified as needed. - a...
0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
3
by: Tony Johansson | last post by:
Hello!! Assume we have one base class called Vehicle and two derived classes called Car and Bus. I would be able to call method getName on an object of class Car or Bus and return back the name...
2
by: Steve James | last post by:
I am trying to mark an override method in a derived class as obsolete using the ObsoleteAttribute. The compiler, however is not picking up this attribute and is not generating a warning or an...
1
by: Steve Teeples | last post by:
I have class that also uses a custom editor that, when compiled directly into my project, works just fine in a propertygrid. However, it was necessary to place that class into a DLL, hense the...
2
by: Edward Diener | last post by:
In C++ an overridden virtual function in a derived class must have the exact same signature of the function which is overridden in the base class, except for the return type which may return a...
0
by: Simon | last post by:
Hi I have developed a custom webcontrol like a Table (A) with a rows collection property (collection derived from CollectionBase) where I put one or more custom webcontrol (B). I need to hide...
3
by: Michael Chambers | last post by:
Hi there, Is there a clean way to change a property or method's attribute in a derived class without redefining the property/method itself. That is, redefining the property/method in the derived...
1
by: mrstephengross | last post by:
I've got a Base class with an attribute "foo" (of type Foo), and a Derived class (derived from Base). In Derived's constructor, I try to refer to Base.foo, but python complains: AttributeError:...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.