Datagrid inline editing

This pull request is mainly about f91bd30, which helps for datagrid fields with default formulas.