I created a class for my PropertyGrid
control which looks something like this:
public class DetailFilterProperties
{
public DetailFilterProperties(TreeViewEventArgs e)
{
...
}
[CategoryAttribute("Base"), DescriptionAttribute("Filtered fields referring to a formatted yam field"), ReadOnly(true)]
public Dictionary<String, String> FilteredFields
{
get;
set;
}
...
}
At runtime i want to add a string property (or a list of strings) to my class can anyone give me an example of how to do this please.
I browsed the web and read about ExpandoObject
but i bet there is an easier way to achieve this, I just didnt find an example yet.
thanks for your help in advance.