Added where clauses to datagrid