Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need to update the left side values in propertygrid by double clicking dynamically...
how can we do this.
Posted
Comments
CHill60 12-Jun-13 9:49am    
The "left side" values are actually the properties of the object you have bound the PropertyGrid to ... are you saying you want to dynamically rename properties of an object???
johannesnestler 13-Jun-13 5:15am    
Is was wondering like CHill60, maybe you can explain what you want to achive - because your requirement sounds quite odd... The PropertyGrid control reflects over the object it is displaying and uses the name of the properties as reflected for the "left side". What you can do is controlling the behaviour and look of the properties by attributes like (Browsable, DefaultValue, ...). What you need is maybe the System.ComponentModel.DisplayName attribute to set the name for a property independend from it's implementation name. If you realy want to allow user editing of this names - I think you have a BIG missunderstanding of the PropertyGrid's purpose... Anyway - please explain better what you want, it's quite likely I can help (PropertyGrid veteran ;-))

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900