|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom data providerHi. I'm trying to develop a custom data provider and would like to add
designer support. Specifically for the CommandText property I would like to set the property editor that all other providers have (the Query builder). Is this Editor available in the ComponentModel library or in any other library? Thanks in advance Hi Michael,
I am sorry to say that I don't think there's such a property editor that you could use directly in your program. To add a UI editor for your custom data provider, you should extend the UITypeEditor class. UITypeEditor class provides a base class that can be used to design value editors that can provide a user interface(UI) for representing and editing the values of objects of the supported data types. The UITypeEditor class is located in System.Drawing.Design namespace in system.drawing assembly. For more information on how to implement a UI editor, you may refer to the link as follows. http://msdn2.microsoft.com/en-us/library/system.drawing.design.uitypeeditor. aspx Hope this helps. If you have anything unclear, please feel free to let me know. Sincerely, Linda Liu Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
|||||||||||||||||||||||