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 DataGridTextboxColumn and
DataGridBoolColumn 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*******@skynet.be>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| References: <3f***********************@reader0.news.skynet.b e>
<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**********************@reader3.news.skynet.be >
| Organization: -= Belgacom Usenet Service =-
| NNTP-Posting-Host: 81.240.41.237
| X-Trace: 1068460120 reader3.news.skynet.be 3817 81.240.41.237:1062
| X-Complaints-To:
us**********@skynet.be
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!newsfee
d01.sul.t-online.de!t-online.de!195.34.132.49.MISMATCH!newsfeed01.chello .at!
amsnews01.chello.com!newsfeed1!bredband!fi.sn.net! newsfeed2.fi.sn.net!newsfe
ed.mesh.ad.jp!skynet.be!skynet.be!louie!tlk!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197968
| X-Tomcat-NG: microsoft.public.dotnet.languages.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.microsoft.com> wrote in message
| news:lS**************@cpmsftngxa06.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.public.dotnet.languages.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***********************@reader0.news.skynet.b e>
| > | Organization: -= Belgacom Usenet Service =-
| > | NNTP-Posting-Host: 194.78.114.66
| > | X-Trace: 1068213901 reader0.news.skynet.be 16927 194.78.114.66:63258
| > | X-Complaints-To:
us**********@skynet.be
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
| >
|
e.de!newsfeed.freenet.de!eusc.inter.net!news.tele. dk!news.tele.dk!small.news
| > tele.dk!skynet.be!skynet.be!louie!tlk!not-for-mail
| > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.csharp:197430
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.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 ArrayEditorExtented derived from ArrayEditor to
get
| > the
| > | possibility to choice the type of entity to create in the dialog Array
| > | editor (override the CreateNewItemType( ...).
| > | 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
| > |
| > |
| > |
| >
|
|
|