I want to rename the title column to ItemTitle in sharepoint list. How can i achieve this? I tried the below code:
SPList splist = spWeb.Lists["ListName"];
spWeb.AllowUnsafeUpdates = true;
splist.Fields["Title"].Title = "Item Title";
splist.Fields["Title"].Update();
splist.Update();
spWeb.Update();
spWeb.AllowUnsafeUpdates = false;
This code i am performing on WebProvisioned
event. I want that whenvever the new site is created the title column of the particular list should be renamed to "Item Title".