Tuesday, October 13, 2009

Rename Title field in share point List

Here is the code to rename the Title field. Because the Title is the default field in custom list.


                    SPField f = listCollection[<Guid of List>].Fields["Title"];
                    f.Title = "Name";
                    f.StaticName = "Name";
                    f.Update();



Note: in SPQuery field you should use Title field. because still internal name is Title.

No comments:

Post a Comment