Home > SharePoint, SharePoint 2010, SP2010 > Why can’t I access the column in my SharePoint list programatically?

Why can’t I access the column in my SharePoint list programatically?

The answer might be simple. The first time a column is created and you title it “Column1” the database records that. If you (or someone else) later changes the column title to “Column2” your application will break. Why? Because behind the scenes that column is still “Column1”

  1. alesissi's avatar
    alesissi
    October 26, 2012 at 21:43

    SP consider “internal name” and “name” of a column in a different way.
    The internal name cannot be changed by the user interface, while the name can.
    You should always use the “GetFieldByInternalName” method.
    Cheers

  1. November 19, 2012 at 13:59

Leave a reply to alesissi Cancel reply

Design a site like this with WordPress.com
Get started