array and propertygrid question

P

Pol Bawin

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
 
J

Jeffrey Tan[MSFT]

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" <[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
|
|
|
 
J

Jeffrey Tan[MSFT]

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" <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| References: <[email protected]>
<[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
|
| | >
| > 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" <[email protected]>
| > | 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: <[email protected]>
| > | 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: (e-mail address removed)
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
| > |
| > |
| > |
| >
|
|
|
 
J

Jeffrey Tan[MSFT]

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" <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| References: <[email protected]>
<[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
|
| | >
| > 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" <[email protected]>
| > | 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: <[email protected]>
| > | 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: (e-mail address removed)
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
| > |
| > |
| > |
| >
|
|
|
 
P

Paul Bawin

Thank you
Polo

"Jeffrey Tan[MSFT]" said:
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" <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| References: <[email protected]>
<[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.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
|
| | >
| > 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" <[email protected]>
| > | 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: <[email protected]>
| > | 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: (e-mail address removed)
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.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
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top