Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
    
<xsl:value-of select="@NameOfDescriptionFieldHere" /> –  Daniel Ziga Jan 27 '12 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 Jan 27 '12 at 9:43
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
    
Ok.Thank you very much for the reply :) –  sharmila Jan 27 '12 at 12:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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