Refactor boolean datagrid function (code cleanup)
Add value 'on' as positive boolean var