refactoring datagrid
refactoring get_condition method, updated to 0.07.03