473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 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
Nov 15 '05 #1
3 2671

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

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

Nov 15 '05 #3
Thank you
Polo

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:m4*************@cpmsftngxa06.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 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
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #4

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

Similar topics

3
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...
0
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...
3
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...
0
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
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:...
5
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...
6
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
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. ...
4
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.