PropertyGrid Refresh
-
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