Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Changing advanced column settings of a field of type USER, through code.

$
0
0


i have column "RequestorName" which is of type USER in sharepoint list.i need to set SHOW FIELD property in sharepoint list advanced column settings, programatically as "ACCOUNT".(By default its "Name(with presence)")
I am able to modify that manually using list setting in sharepoint,but i need to set that showfield property as "Account" through code.
this is the code i am using to create List.

SPList lstTest = web.Lists["test"];
lstTest.Fields.Add("Name", SPFieldType.User, false);
lstTest.Update();

i dont know how to set "showfield property" in advanced column settings of 'User' field  property through code
Any pointer will be helpful.
Thanks in advance


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>