I need to get the values of Sharepoint Field Choice Column in Sharepoint 2007 without accessing a li
Posted
by netadictos
on Stack Overflow
See other posts from Stack Overflow
or by netadictos
Published on 2010-05-06T07:31:21Z
Indexed on
2010/05/06
7:38 UTC
Read the original article
Hit count: 282
Hi, I want to do this but without accesing the list "items", that is to say, to access the column perhaps with the root site or a contenttype, not depending on a list that can be created or not inside the Sharepoint app.
SPFieldChoice choice = (SPFieldChoice)items.Fields[namefield];
foreach (string choiceName in choice.Choices)
{
//etc...
}
© Stack Overflow or respective owner