Posted by: R Manimaran | July 2, 2010

SPGridView Error: Value cannot be null. Parameter name:propName

In SharePoint for Gridview result I have used SPGridView. When I set the datasource for the SPgridview I came across an error “Value cannot be null. Parameter name:propName”. Then I checked the properties I have set.
SPGridView have the option to Group the Result based on a column. It has one property called “AllowGrouping” When you set the AllowGrouping=true, you have to set the following property along with it.


SpGridView. GroupField=”Title”;

Other Properties are

SPGridView.AllowGroupCollapse = false;

SPGridView.GroupDescriptionField = “Title”;

SPGridView.GroupFieldDisplayName = “Title Text”;



  1. Thx alot.

  2. Manimaran, thanks very much for this tip. very useful.

  3. Thank you!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: