I'm using the PropertyGrid to allow users to edit objects during run time. Most of the time, this works great, but I ran into an issue with PrimitiveTypeCollectionEditor when the editable object is list of strings:
Thanks!
public class MyObject
{
public MyObject()
{
MyStrings = new List<string>();
}
public int MyInt { get; set; }
public string MyString { get; set; }
public List<string> MyStrings { get; set; }
}
The PropertyGrid is properly displaying all the values in MyObject. Changes made in the PropertyGrid to MyInt and MyString are being saved back to the source appropriately. But, changes made to MyStrings using the PrimitiveTypeCollectionEditor are not being saved back to the source. Is this because it's having a difficult time applying the multiline text editor back to a list of strings? Is there any way to accomplish this?Thanks!