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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -