Instead of writing the usual:
settings.Columns.Add("Name");
use this:
settings.Columns.Add(col => { col.FieldName = "Name"; var tbxProperties = col.PropertiesEdit as TextBoxProperties; tbxProperties.ConvertEmptyStringToNull = false; });
Not pretty, but does work.
No comments:
Post a Comment