Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. propertygrid

propertygrid

Scheduled Pinned Locked Moved C#
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ingwaar
    wrote on last edited by
    #1

    How could I order "categories" in the propertygrid according to my will?

    S 1 Reply Last reply
    0
    • I ingwaar

      How could I order "categories" in the propertygrid according to my will?

      S Offline
      S Offline
      spif2001
      wrote on last edited by
      #2

      Depends... if it is your own properties use the Category attribute: [Category("MyCategory")] public int MyInt { get{...} set{...} } if you whant to change category on derived properties, u have to override the properties and do as above, but alas not all properties can be overridden. -spif2001

      T I 2 Replies Last reply
      0
      • S spif2001

        Depends... if it is your own properties use the Category attribute: [Category("MyCategory")] public int MyInt { get{...} set{...} } if you whant to change category on derived properties, u have to override the properties and do as above, but alas not all properties can be overridden. -spif2001

        T Offline
        T Offline
        the last free name
        wrote on last edited by
        #3

        I believe I saw (on Google somewhere) that adding multiple \t's before the category name allows you to change the order. Never tried it though:~

        1 Reply Last reply
        0
        • S spif2001

          Depends... if it is your own properties use the Category attribute: [Category("MyCategory")] public int MyInt { get{...} set{...} } if you whant to change category on derived properties, u have to override the properties and do as above, but alas not all properties can be overridden. -spif2001

          I Offline
          I Offline
          ingwaar
          wrote on last edited by
          #4

          Thanks a lot for your message! But my question was about ordering of "categories" for propertygrid representation. I know how to use this attribute.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups