Dynamic PropertyGrid

Hope you are familiar with Windows property grid control. I had used this control long time back,but I couldnt get a chance to work with dynamic properties. I thought there will be some methods like GridName.Items.Add () to add items at runtime. But, I wrote some lines of code to accomplish the same. My requirement was simple:- I want to display all properties of my object in propertygrid, but I dont know the name of properties at design time. I have used CollectionBase, ICustomTypeDescriptor and PropertyDescriptor classes to accomplish the same. Just uploaded one article here.

No Comments

Leave a reply