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
| > |
| > |
| > |
| >
|
|
|