I added a new column to Sharepoint Custom list which is boolean type, now each time I upload a item to list, it displays that column to check or leave it blank, by default its checked, I wanna access this property programmatically but can't remember how to do it.
public void Documents(string URL)
{
using (SPSite site = new SPSite(URL))
using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists["Mes"];
if (list.ItemCount != 0)
{
foreach (SPListItem listItem in list.Items)
{
if(listItem.)
}
}
}
}
Edited
I guess using this statement
listItem.Properties["columnName"];