SharePointAds TextOnly

Saturday 25 July 2009

How to change 'Title' column of any list? (Programmatically!!)

-use this!!

SPList list = web.Lists["listName"];
//Change the Title column name to "vendor_name"
list.Fields["Title"].Title = "Vendor_Name";
list.Fields["Title"].Description = "Vendor Name";
list.Fields["Title"].Update();