Posted by: R Manimaran | August 3, 2010

Updating SharePoint Choice Field and Sorting Problem

I have a Choice column[Checkboxes (allow multiple selections) ] in my Sharepoint list. I have set the Multi selection option for the choice Field. To update the value using object model, I used direct string like this..

item[“Technology“] = “C#;Java”;

It gets updated without error. But if I select filter option to show only C# values,  it shows the empty result, even though C# value is there.

For updating the multichoice we need to pass the value as

item[“Technology“] = “;#Php;#Java;#“;


SPFieldMultiChoiceValue technologies = new SPFieldMultiChoiceValue();



item[“Technology“] = technologies;

After updating, if you used the filter options it is working fine.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: