Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

SPLIstItem...

  Asked By: Krysta    Date: Mar 09    Category: Sharepoint    Views: 1043

I have a document Library wihch had one of teh items of type choice
with multi seletion option set to yes.

I need to programatically be able to add the multiple choices for
the field.

Example I have two choices Choice 1: Type I Diabetes
Choice 2: Multiple Sclerosis


I tried all the below options but no luck

1. splistitem["Disease Area"] = Type I Diabetes;#Multiple
Sclerosis

2. splistitem["Disease Area"] = Type I Diabetes;#.Multiple
Sclerosis

3. splistitem["Disease Area"] = "1;#.2"

4. splistitem["Disease Area"] = "1;#2"

5.

string my_dis1 = "Type I Diabetes";
string my_dis2 = "Multiple Sclerosis";
splistitem["Disease Area"] = my_dis1 + ";#" + my_dis2;

6.

string my_dis1 = "Type I Diabetes";
string my_dis2 = "Multiple Sclerosis";
splistitem["Disease Area"] = my_dis1 + ";#." + my_dis2;

Share: 



Tagged: