2

have a list in SharePoint portal. Also I have added description to each of the fields in list. Now I have created a dataview webpart in SharePoint 2007 Designer. I am able to get the list column values but I em not able to get the Column description ? Can anyone tell me how can I get the description of the list column using xslt in sharepoint designer?

2
  • <xsl:value-of select="@NameOfDescriptionFieldHere" />
    – user2536
    Commented Jan 27, 2012 at 9:38
  • Here Description is not another column. It is the description of the column which i have added. Suppose "MyColumn" is the column in the list.while creating the column I have added description to it for ex: MyColumn is the first Column"
    – sharmila
    Commented Jan 27, 2012 at 9:43

1 Answer 1

3

Sharmila,

You cannot get the Description of the column, in DataViewWebpart, since the description which you provided becomes part of Field Description Attritbute, and the value of the Field becomes part of SPList Item.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.