datagrid: REFACTORING