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