473,545 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

array and propertygrid question

Hi All,

One :

I have a property that get/set a array of an abstract class A
By default my array is null
In the propertygrid, It is not works correctly when my array is null. (when
my array is initialized with one element it works fine)
But I can not change the initial state of the array. It must be null.
what must I change.

A second question:

I have created a new ArrayEditorExte nted derived from ArrayEditor to get the
possibility to choice the type of entity to create in the dialog Array
editor (override the CreateNewItemTy pe( ...).
The problem is that the text of the menu button is the name of the class.
How can I change it.

Thank you in advance
Nov 15 '05 #1
3 2683

Hi Paul,

Thanks for your feedback.
I have reviewed this issue, and understand your problem.
I will do some research on it. I will reply to 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.

--------------------
| From: "Paul Bawin" <po*******@skyn et.be>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| References: <3f************ ***********@rea der0.news.skyne t.be>
<lS************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: array and propertygrid question
| Date: Mon, 10 Nov 2003 11:28:16 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Lines: 896
| Message-ID: <3f************ **********@read er3.news.skynet .be>
| Organization: -= Belgacom Usenet Service =-
| NNTP-Posting-Host: 81.240.41.237
| X-Trace: 1068460120 reader3.news.sk ynet.be 3817 81.240.41.237:1 062
| X-Complaints-To: us**********@sk ynet.be
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!newsf ee
d01.sul.t-online.de!t-online.de!195.3 4.132.49.MISMAT CH!newsfeed01.c hello.at!
amsnews01.chell o.com!newsfeed1 !bredband!fi.sn .net!newsfeed2. fi.sn.net!newsf e
ed.mesh.ad.jp!s kynet.be!skynet .be!louie!tlk!n ot-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1979 68
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Hi Jeffrey
|
| In the property grid, you click in ellips button to open the array
editor.
| My property is an array of an abstract class.
| See the picture
| How can change the name of the menu
|
| ""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
| news:lS******** ******@cpmsftng xa06.phx.gbl...
| >
| > Hi Pol,
| >
| > Thanks for posting in this group.
| > For your first question, I think it is by design.
| > To work around this, in the get accessor, you can judge the array
| > reference, if it is null, you can create items for it. then you can edit
| it
| > from propertygrid.
| >
| > For your second question, can you tell me what is the menu button?
| >
| > 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.
| >
| > --------------------
| > | From: "Pol Bawin" <pb@rtech.be>
| > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| > | Subject: array and propertygrid question
| > | Date: Fri, 7 Nov 2003 15:05:00 +0100
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Lines: 22
| > | Message-ID: <3f************ ***********@rea der0.news.skyne t.be>
| > | Organization: -= Belgacom Usenet Service =-
| > | NNTP-Posting-Host: 194.78.114.66
| > | X-Trace: 1068213901 reader0.news.sk ynet.be 16927 194.78.114.66:6 3258
| > | X-Complaints-To: us**********@sk ynet.be
| > | Path:
| >
|
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
| >
|
e.de!newsfeed.f reenet.de!eusc. inter.net!news. tele.dk!news.te le.dk!small.new s
| > tele.dk!skynet. be!skynet.be!lo uie!tlk!not-for-mail
| > | Xref: cpmsftngxa06.ph x.gbl
| microsoft.publi c.dotnet.langua ges.csharp:1974 30
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| > |
| > | Hi All,
| > |
| > | One :
| > |
| > | I have a property that get/set a array of an abstract class A
| > | By default my array is null
| > | In the propertygrid, It is not works correctly when my array is null.
| > (when
| > | my array is initialized with one element it works fine)
| > | But I can not change the initial state of the array. It must be null.
| > | what must I change.
| > |
| > | A second question:
| > |
| > | I have created a new ArrayEditorExte nted derived from ArrayEditor to
get
| > the
| > | possibility to choice the type of entity to create in the dialog Array
| > | editor (override the CreateNewItemTy pe( ...).
| > | The problem is that the text of the menu button is the name of the
| class.
| > | How can I change it.
| > |
| > | Thank you in advance
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #2

Hi Paul,

I think the only way to change the items in the menu is to change the name
of the objects (Its just like the DataGridTextbox Column and
DataGridBoolCol umn in the Collection editor when you set up datagrid column
styles). The names of the objects become the names on the menu. There isn't
any design time way to change this.

Hope this helps,
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.

--------------------
| From: "Paul Bawin" <po*******@skyn et.be>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| References: <3f************ ***********@rea der0.news.skyne t.be>
<lS************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: array and propertygrid question
| Date: Mon, 10 Nov 2003 11:28:16 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Lines: 896
| Message-ID: <3f************ **********@read er3.news.skynet .be>
| Organization: -= Belgacom Usenet Service =-
| NNTP-Posting-Host: 81.240.41.237
| X-Trace: 1068460120 reader3.news.sk ynet.be 3817 81.240.41.237:1 062
| X-Complaints-To: us**********@sk ynet.be
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!newsf ee
d01.sul.t-online.de!t-online.de!195.3 4.132.49.MISMAT CH!newsfeed01.c hello.at!
amsnews01.chell o.com!newsfeed1 !bredband!fi.sn .net!newsfeed2. fi.sn.net!newsf e
ed.mesh.ad.jp!s kynet.be!skynet .be!louie!tlk!n ot-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1979 68
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Hi Jeffrey
|
| In the property grid, you click in ellips button to open the array
editor.
| My property is an array of an abstract class.
| See the picture
| How can change the name of the menu
|
| ""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
| news:lS******** ******@cpmsftng xa06.phx.gbl...
| >
| > Hi Pol,
| >
| > Thanks for posting in this group.
| > For your first question, I think it is by design.
| > To work around this, in the get accessor, you can judge the array
| > reference, if it is null, you can create items for it. then you can edit
| it
| > from propertygrid.
| >
| > For your second question, can you tell me what is the menu button?
| >
| > 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.
| >
| > --------------------
| > | From: "Pol Bawin" <pb@rtech.be>
| > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| > | Subject: array and propertygrid question
| > | Date: Fri, 7 Nov 2003 15:05:00 +0100
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Lines: 22
| > | Message-ID: <3f************ ***********@rea der0.news.skyne t.be>
| > | Organization: -= Belgacom Usenet Service =-
| > | NNTP-Posting-Host: 194.78.114.66
| > | X-Trace: 1068213901 reader0.news.sk ynet.be 16927 194.78.114.66:6 3258
| > | X-Complaints-To: us**********@sk ynet.be
| > | Path:
| >
|
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
| >
|
e.de!newsfeed.f reenet.de!eusc. inter.net!news. tele.dk!news.te le.dk!small.new s
| > tele.dk!skynet. be!skynet.be!lo uie!tlk!not-for-mail
| > | Xref: cpmsftngxa06.ph x.gbl
| microsoft.publi c.dotnet.langua ges.csharp:1974 30
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| > |
| > | Hi All,
| > |
| > | One :
| > |
| > | I have a property that get/set a array of an abstract class A
| > | By default my array is null
| > | In the propertygrid, It is not works correctly when my array is null.
| > (when
| > | my array is initialized with one element it works fine)
| > | But I can not change the initial state of the array. It must be null.
| > | what must I change.
| > |
| > | A second question:
| > |
| > | I have created a new ArrayEditorExte nted derived from ArrayEditor to
get
| > the
| > | possibility to choice the type of entity to create in the dialog Array
| > | editor (override the CreateNewItemTy pe( ...).
| > | The problem is that the text of the menu button is the name of the
| class.
| > | How can I change it.
| > |
| > | Thank you in advance
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #3
Thank you
Polo

""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
news:m4******** *****@cpmsftngx a06.phx.gbl...

Hi Paul,

I think the only way to change the items in the menu is to change the name
of the objects (Its just like the DataGridTextbox Column and
DataGridBoolCol umn in the Collection editor when you set up datagrid column styles). The names of the objects become the names on the menu. There isn't any design time way to change this.

Hope this helps,
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.

--------------------
| From: "Paul Bawin" <po*******@skyn et.be>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| References: <3f************ ***********@rea der0.news.skyne t.be>
<lS************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: array and propertygrid question
| Date: Mon, 10 Nov 2003 11:28:16 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Lines: 896
| Message-ID: <3f************ **********@read er3.news.skynet .be>
| Organization: -= Belgacom Usenet Service =-
| NNTP-Posting-Host: 81.240.41.237
| X-Trace: 1068460120 reader3.news.sk ynet.be 3817 81.240.41.237:1 062
| X-Complaints-To: us**********@sk ynet.be
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!newsf ee d01.sul.t-online.de!t-online.de!195.3 4.132.49.MISMAT CH!newsfeed01.c hello.at! amsnews01.chell o.com!newsfeed1 !bredband!fi.sn .net!newsfeed2. fi.sn.net!newsf e ed.mesh.ad.jp!s kynet.be!skynet .be!louie!tlk!n ot-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1979 68 | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Hi Jeffrey
|
| In the property grid, you click in ellips button to open the array
editor.
| My property is an array of an abstract class.
| See the picture
| How can change the name of the menu
|
| ""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
| news:lS******** ******@cpmsftng xa06.phx.gbl...
| >
| > Hi Pol,
| >
| > Thanks for posting in this group.
| > For your first question, I think it is by design.
| > To work around this, in the get accessor, you can judge the array
| > reference, if it is null, you can create items for it. then you can edit | it
| > from propertygrid.
| >
| > For your second question, can you tell me what is the menu button?
| >
| > 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.
| >
| > --------------------
| > | From: "Pol Bawin" <pb@rtech.be>
| > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| > | Subject: array and propertygrid question
| > | Date: Fri, 7 Nov 2003 15:05:00 +0100
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Lines: 22
| > | Message-ID: <3f************ ***********@rea der0.news.skyne t.be>
| > | Organization: -= Belgacom Usenet Service =-
| > | NNTP-Posting-Host: 194.78.114.66
| > | X-Trace: 1068213901 reader0.news.sk ynet.be 16927 194.78.114.66:6 3258
| > | X-Complaints-To: us**********@sk ynet.be
| > | Path:
| >
|
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin | >
|
e.de!newsfeed.f reenet.de!eusc. inter.net!news. tele.dk!news.te le.dk!small.new s | > tele.dk!skynet. be!skynet.be!lo uie!tlk!not-for-mail
| > | Xref: cpmsftngxa06.ph x.gbl
| microsoft.publi c.dotnet.langua ges.csharp:1974 30
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| > |
| > | Hi All,
| > |
| > | One :
| > |
| > | I have a property that get/set a array of an abstract class A
| > | By default my array is null
| > | In the propertygrid, It is not works correctly when my array is null. | > (when
| > | my array is initialized with one element it works fine)
| > | But I can not change the initial state of the array. It must be null. | > | what must I change.
| > |
| > | A second question:
| > |
| > | I have created a new ArrayEditorExte nted derived from ArrayEditor to
get
| > the
| > | possibility to choice the type of entity to create in the dialog Array | > | editor (override the CreateNewItemTy pe( ...).
| > | The problem is that the text of the menu button is the name of the
| class.
| > | How can I change it.
| > |
| > | Thank you in advance
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #4

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

Similar topics

3
6038
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 from a database and manipulate the TypeConverters dynamically. The property grid then displays the property with a drop down list. It does work...
0
1102
by: newbie | last post by:
Hello All, I am trying to develop an application to edit various 'entities' in a database. Entities include User, Group, Department, Test, System, approximately 20 - 30 class. Several classes will be composed of others, for example User will contain department. I am trying to design on the objects for use with other applications as well,...
3
4031
by: Frank Rizzo | last post by:
I added a PropertyGrid control to my form and set its SelectedObject property to one of my objects which exposes a lot of properties of type System.Drawing.Color. The System.Drawing.Color display fine, but they don't have a dropdown where I can select a new color, like in the VS.NET. How can I help the PropertyGrid display dropdowns for...
0
2797
by: Olav Langeland | last post by:
I have a C# Form with a System.Windows.Forms.PropertyGrid(). This uses a Datagram class, implemented in both C# and C++: // C# public class Datagram { public byte _Buffer; // some code...
0
1410
by: micro_bug | last post by:
Now I am developing a tool, just like VS.net Form Edition environment. User can edit a component's properties by a PropertyGrid control. Now I have some questions about this PropertyGrid control: 1. How to verify a property's validifity? as you know, In VS.net, when we input a component name that is same with an existed name in the...
5
1715
by: Ger | last post by:
The propertygrid is a great control, but I would like to show a more descriptive text for the properties in the control. I tried to find a solution within the system.componentmodel but did not succeed. As far as I know I can only show the user the property name I use in my class, like "cubic_inches". I would like the user to see something...
6
6924
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
5
3002
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. Some of the inputs can be either monetary or percantage. The ideal scenario is where the user enters the value and immediately to the right of the...
4
18808
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 it seems to me that a PropertyGrid is a perfect modern replacement. I won't bore you with the details with all the controls on the dialog since I'm...
0
7468
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7808
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7423
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7757
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5329
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4945
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
704
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.