enable validation for datagrid