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 Refresh

PropertyGrid Refresh

Scheduled Pinned Locked Moved C#
questioncsharpcssdotnetdesign
1 Posts 1 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.
  • E Offline
    E Offline
    e laj
    wrote on last edited by
    #1

    Can anyone tell me how to "deeply" refresh property grid. That means after refreshing it all attributes attached to its SelectedObject's properties will be reloaded. I have tried the following: 1. propertyGrid.Refresh(); // Doesn't work 2. propertyGrid.SelectedObject = PropertyGrid.SelectedObject; // Doesn't work 3. object obj = propertyGrid.SelectedObject; propertyGrid.SelectedObject = null; propertyGrid.SelectedObject = obj; // Doesn't work. I try also to assign a new object (of the same type that was assigned to the propertyGrid) to another property grid but the second property grid still displayed the cached attributes. It seems that the .net framework cache the attributes assigned to the selected object, but how can i clear that cache - or at least make the framework reloads these attributes. The reason i want to do so is to enable runtime switching between different languages. My overriden Description, Category And DisplayName attributes loads values depends on the current thread culure UI. Any suggestions? Thanks

    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