Description

SPGridView control does not support the automatic generation of columns.

Resolution

You always have to set the property AutoGenerateColumns to false and explicitly bind your columns using SPBoundField.

Links