void entry_Changed(object sender, EventArgs e) { string text = ((Entry) sender).Text; //if value was null and new value is empty, leave as null if (!(text == "" && parentRow.PropertyValue== null)) parentRow.PropertyValue = ((Entry) sender).Text; }