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. Remove items from property grid

Remove items from property grid

Scheduled Pinned Locked Moved C#
helpcssquestion
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.
  • N Offline
    N Offline
    Naveed727
    wrote on last edited by
    #1

    Hello to all I have problem with property grid. I am adding label object to property grid and want to show some specific property of label. But propertygrid shows all properties. Please help me out how can i skip some property of label. Thanks in advance.

    D 1 Reply Last reply
    0
    • N Naveed727

      Hello to all I have problem with property grid. I am adding label object to property grid and want to show some specific property of label. But propertygrid shows all properties. Please help me out how can i skip some property of label. Thanks in advance.

      D Offline
      D Offline
      Dragonfly_Lee
      wrote on last edited by
      #2

      I am afraid we can not do this for defined control, such as Textbox. But we can set the visible property for custom control(e.g. MyTextbox) via Browserable attribute. If we want to expose some certain property from Textbox, we can hold the reference in MyTextbox object. For example: class MyTextbox { TextBox textbox; public string Text { get { return this.textbox.Text; } set { this.textbox.Text = value; } } } Hope this will help you ~

      Tan Li I Love KongFu~

      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