window and datagrid