Question

I have view with following fields

    <ViewFields>
      <FieldRef Name="DocIcon" />
      <FieldRef Name="Title"  />
      <FieldRef Name="Modified" />
    </ViewFields>

I want to change name of a column, so I write

    <ViewFields>
      <FieldRef Name="DocIcon" />
      <FieldRef Name="Title"  />
      <FieldRef Name="Modified" DisplayName="Badaboom" />
    </ViewFields>

but it doesn't work.

Is there any way to change DisplayName in list definition? I know how to do it programmicaly, but xml seems to be not working.

Was it helpful?

Solution

To change the column name, you can simply select the field name from the List Settings page and change its title /column name to the desired name.

Note: the internal name of the column will still remain the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top