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.

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top