Fixed index assignation when set data is an array.
Merge pull request #6 from beregond/datagrid

Fixed index assignation when setData parameter is an array.