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”
Categories: SharePoint, SharePoint 2010, SP2010
C#, SharePoint 2010, Visual Studio 2010
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