Question : sharepoint create site column programmatically

I can add a column to a site using this code (the getimpersonatedweb works well)


using (SPWeb sharepointWebSite = GetImpersonatedWeb()){
sharepointWebSite.Fields.Add("TEST", SPFieldType.Text, true);

If I do this, my column appears under "Custom Columns", is there a way to get it to show under "Core Contact and Calendar Columns"?

Answer : sharepoint create site column programmatically

You need to use the "Group" property of your field and set its value to "Core Contact and Calendar Columns".

Refer the following article for more information
http://blogs.pointbridge.com/Blogs/basin_ilya/Pages/Post.aspx?_ID=3
Random Solutions  
 
programming4us programming4us