c# - changing the property of class file at run time -
how change property name of class file @ run time being used property in propertygrid
ex)
public class propertygrid_sample { string m_displaystring; public string text { { return m_displaystring; } set { m_displaystring = value; } } //some code change name } when propertygrid.selectedobject == propertygrid_sample class object, name text displayed property in property grid after compilation. need textalign displayed when accessing property text. making [displayname("textalign")] able solution expecting code make change @ run time
it sounds you're looking this:
http://www.codeproject.com/kb/grid/propertygriddynamicprop.aspx
Comments
Post a Comment