raja123 Noob
Posts : 3 Join date : 2010-08-24
| Subject: How to set values for a checkbox choice list field? (SPFieldMultiChoice) Tue Aug 24, 2010 11:55 am | |
| This is a question I just recieved through my "contact" form for this blog. The person (Chris) who asked the question gave a wrong email address, so I will post the answer publicly since I believe this can help other starting sharepoint developers - especially since I saw some wrong tips coming up in google when you search for it. So here is the right way to do it. Question: "Hi, thanks a mil for those snippets!One question: I'm trying to programatically add selected items of a checkBoxList to a SPListItem, but am not sure in what format it wants it. i.e I've added all items as you suggested - newItem["Name"] = "blah" etc, but when it comes to the field that requires the selected checkboxlist values, I'm stuck." software packagingStainless Steel Sheet | |
|