If you provide an id to each column does this error still ocurr?
It only appears on the first column with no id set. Setting an id to the first column and you wont have the bug.
Overriding the template class with the override provided a few post above and also setting no id is fixed.
The same errors appear when the id of the column\s contains spaces.Careful when work with dynamic data.It take more than an hour to find this little thing.