While using SPGridView with AllowGroupCollapse=True was returning me this error on Binding.
Adding EnableViewState = False resolved the issue.
Hope this helps!!!!
The Template property must be initialized before rendering this control. It cannot be null when the control is rendered.
Adding EnableViewState = False resolved the issue.
Hope this helps!!!!