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. Customising property grid

Customising property grid

Scheduled Pinned Locked Moved C#
questioncss
2 Posts 2 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.
  • B Offline
    B Offline
    Berlus
    wrote on last edited by
    #1

    Hello, Does anyone know how can I display only one categorty in the property grid ? I've created a custom control that inherits from usercontrol, but when I put the property grid I am seeing ALL the properties of this user conrtol. Thanks, Eyal

    A 1 Reply Last reply
    0
    • B Berlus

      Hello, Does anyone know how can I display only one categorty in the property grid ? I've created a custom control that inherits from usercontrol, but when I put the property grid I am seeing ALL the properties of this user conrtol. Thanks, Eyal

      A Offline
      A Offline
      aamironline
      wrote on last edited by
      #2

      I dont know why do you have such requirement. However I can say that its difficult but not impossible. You will need to create another type at runtime using reflaction emit, from the object you wish to bind to property grid. This type will have only those properties which you want to bind to the grid. Once type is created, assign populated object of newly created type to the grid... Hope this piece of information will be useful to you.

      M Aamir Maniar aamirOnline.com

      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