array and propertygrid question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pol Bawin

    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


  • Jeffrey Tan[MSFT]

    #2
    Re: array and propertygrid question


    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" <pol.bawin@skyn et.be>
    | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    | References: <3faba68d$0$169 27$ba620e4c@rea der0.news.skyne t.be>
    <lS16yn2pDHA.18 04@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: <3faf6854$0$381 7$ba620e4c@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: usenet-abuse@skynet.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-jetan@online.mi crosoft.com> wrote in message
    | news:lS16yn2pDH A.1804@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: <3faba68d$0$169 27$ba620e4c@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: usenet-abuse@skynet.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
    | > |
    | > |
    | > |
    | >
    |
    |
    |

    Comment

    • Jeffrey Tan[MSFT]

      #3
      Re: array and propertygrid question


      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" <pol.bawin@skyn et.be>
      | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
      | References: <3faba68d$0$169 27$ba620e4c@rea der0.news.skyne t.be>
      <lS16yn2pDHA.18 04@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: <3faf6854$0$381 7$ba620e4c@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: usenet-abuse@skynet.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-jetan@online.mi crosoft.com> wrote in message
      | news:lS16yn2pDH A.1804@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: <3faba68d$0$169 27$ba620e4c@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: usenet-abuse@skynet.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
      | > |
      | > |
      | > |
      | >
      |
      |
      |

      Comment

      • Paul Bawin

        #4
        Re: array and propertygrid question

        Thank you
        Polo

        ""Jeffrey Tan[MSFT]"" <v-jetan@online.mi crosoft.com> wrote in message
        news:m4kLVdoqDH A.444@cpmsftngx a06.phx.gbl...[color=blue]
        >
        > 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[/color]
        column[color=blue]
        > styles). The names of the objects become the names on the menu. There[/color]
        isn't[color=blue]
        > 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" <pol.bawin@skyn et.be>
        > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
        > | References: <3faba68d$0$169 27$ba620e4c@rea der0.news.skyne t.be>
        > <lS16yn2pDHA.18 04@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: <3faf6854$0$381 7$ba620e4c@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: usenet-abuse@skynet.be
        > | Path:
        >[/color]
        cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!newsf ee[color=blue]
        >[/color]
        d01.sul.t-online.de!t-online.de!195.3 4.132.49.MISMAT CH!newsfeed01.c hello.at![color=blue]
        >[/color]
        amsnews01.chell o.com!newsfeed1 !bredband!fi.sn .net!newsfeed2. fi.sn.net!newsf e[color=blue]
        > ed.mesh.ad.jp!s kynet.be!skynet .be!louie!tlk!n ot-for-mail
        > | Xref: cpmsftngxa06.ph x.gbl[/color]
        microsoft.publi c.dotnet.langua ges.csharp:1979 68[color=blue]
        > | 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-jetan@online.mi crosoft.com> wrote in message
        > | news:lS16yn2pDH A.1804@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[/color]
        edit[color=blue]
        > | 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: <3faba68d$0$169 27$ba620e4c@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: usenet-abuse@skynet.be
        > | > | Path:
        > | >
        > |
        >[/color]
        cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin[color=blue]
        > | >
        > |
        >[/color]
        e.de!newsfeed.f reenet.de!eusc. inter.net!news. tele.dk!news.te le.dk!small.new s[color=blue]
        > | > 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[/color]
        null.[color=blue]
        > | > (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[/color]
        null.[color=blue]
        > | > | 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[/color]
        Array[color=blue]
        > | > | 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
        > | > |
        > | > |
        > | > |
        > | >
        > |
        > |
        > |
        >[/color]


        Comment

        Working...