testing datagrid & createsqlquery