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”

Advertisement
  1. 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

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: