Set AutoGenerateColumns=false for SPGridView

Description

The 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

SPGridView class
SPGridView: How to Auto Generate Columns

Last edited Aug 5, 2014 at 12:02 PM by dvd73, version 1

Comments

No comments yet.