This topic has not yet been rated - Rate this topic

DataFormWebPart.ListName Property

Specifies the GUID of the list.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public virtual string ListName { get; set; }

Property Value

Type: System.String
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
ListName in SP 2010 now enforces GUID value
If you are seeing the "The specified value is invalid because it is null or cannot be converted to a Guid." error because you supplied the actual list name as the value of the listname attribute, try using the ListDisplayName attribute instead. This elimantes the error and allows you to reference the list via its name instead of the ID/GUID.
ListName in SP 2010 now enforces GUID value
The following error is thrown if the ListName is supplied rather than a GUID value. Eg ListName="Announcements" now throws The specified value is invalid because it is null or cannot be converted to a Guid.

The format now needs to be ListName="{D05FE419-9AFD-4AC1-B370-422ABD00B084}"