programmatically setting custom column (with datatype person/group) of a sharepoint list.


  • Hi,

       I have a custom list with one of the column as "Recruiter"(of which the datatype is person/group). I am adding list item programmatically as

    string struser = SPContext.Current.Web.CurrentUser.Name;

    item["Recruiter"]= struser ;


    then it thoughs the error as

    Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Please help me to resolve this if anyone knows this.

    Thanks in advance

    lundi 18 juin 2012 07:44


Toutes les réponses