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

Replaced enumerate iteration index with loop.index0 variable