Export (0) Print
Expand All
Expand Minimize

ContentByQueryWebPart.DataColumnRenames property

Column to rename after the data has been retrieved.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
PublicPropertyDataColumnRenamesAsStringGetSet
'Usage
DiminstanceAsContentByQueryWebPartDimvalueAsStringvalue = instance.DataColumnRenames

instance.DataColumnRenames = value

Property value

Type: System.String

Column renames are separated by semicolons and are in the format "originalName,newName."

A new Column name must not be present in the data or the rename is not performed,

This example is valid:

"originalName,newName."

This example is not valid:

"originalName1,newName1;originalName2,newName2."

Community Additions

ADD
Show:
© 2014 Microsoft