templates/datagrid.jinja: jinja2 does not define enumerate function.

Replaced enumerate iteration index with loop.index0 variable