Introduction
This article is the 17th part of my SharePoint series. Here are my previous articles,
- Learn SharePoint In Series - Part One - Introduction
- Learn SharePoint In Series - Part Two - Web Application
- Learn SharePoint In Series - Part Three - Site Collections
- Learn SharePoint In Series - Part Four - Subsites
- Learn SharePoint In Series – Part Five – SharePoint Lists
- Learn SharePoint In Series - Part Six - Power Of Versioning
- Learn SharePoint In Series - Part Seven - Lists Advanced Settings
- Learn SharePoint In Series - Part Eight - Validation Settings in List Settings
- Learn SharePoint In Series - Part Nine - Audience Targeting
- Learn SharePoint In Series - Part Ten - Rating Settings
- Learn SharePoint In Series - Part Eleven - Form Settings in List Settings
- Learn SharePoint In Series - Part Twelve- Save list as template in List Setting
- Learn SharePoint In Series - Part Thirteen- Permission Settings in List Settings
- Learn SharePoint In Series - Part Fourteen- Enterprise Metadata and Keywords
- Learn SharePoint In Series - Part Fifteen - Retention System under Information Management System
- Learn SharePoint In Series - Part Sixteen - RSS Settings in List Settings
In the previous article, I have explained RSS Settings in list settings using which we can display RSS feed for any SharePoint list. In this article, I am going to explain about columns in SharePoint.
In this article, I am going to explain,
- Background
- Introduction to List Columns
- Data types available in columns
- Creating list Columns in SharePoint
- Editing list Columns in SharePoint
- Deleting list Columns in SharePoint
- The scope of List Columns in SharePoint
- Summary
Background
In part five of this series, we have seen that SharePoint maintains data in the lists and libraries. All the data is stored in columns (properties). And every property has its data type. For example, if we are storing the salary of an employee then it must be in numbers, salary should not be stored like forty thousand and five hundred, instead, what we do, we store it like 40500. Similarly, each piece of data has its own data type. In SQL or any other database server, we have many column types such as Text, Number, Blob, Boolean, etc, and in SharePoint also we have some predefined data types. Let’s explore SharePoint columns in detail.
Introduction to List Columns in SharePoint
Microsoft defines SharePoint columns as “A column represents an attribute, or piece of metadata, that the user wants to manage for the items in the list or content type to which they added the column”. If we are creating a SharePoint list, then without columns we cannot store any kind of data in the SharePoint list. A list without columns is like a table without columns in an SQL server. Based on the data stored, SharePoint columns have several types.
A column in SharePoint can be used to represent additional information about the list or the library items. Columns are called the attribute or the metadata for the list/library items. For example, consider you want to maintain information about an employee who is working in your organization, then you will create a SharePoint list and you will add an attribute such as name, telephone number, or address. The attributes or metadata are called columns in SharePoint terminology.
Data types available in columns
As we have discussed earlier in this article, there are many data types available in SharePoint to store the data. Let’s see each of them in detail.
Creating list columns in SharePoint
We have seen what columns in SharePoint are and what are available types for columns. Now let's see how we can create a SharePoint list column. There are multiple ways of creating columns in lists. Let’s see each one of them.
From SharePoint List Ribbon in Classic layout
Open the list in which you want to create a column. I have already created a list with the name RSS. Then click on the List ribbon. There you will have a menu item as “Create Column”. Clicking on this menu item will open up a new column creation page.
From the Quick Edit view
Open the list in which you want to create a column, and click on the Edit link.
Clicking on the Edit link, the list will now open in the datasheet view. And you will find a Plus (+) sign. Clicking on the + sign will open up the Create column page.
From the list settings page
Open the list in which you want to create a column. Click on the List tab in the ribbon and then click on the List Settings menu under the List tab.
This will open up the list setting page. Scroll down to the columns section. There you will find a link with the text Create Column. Clicking on this link will open up the Create column page.
Add columns from the list view itself (Modern Layout)
When you will open up the list in Modern Layout, you will find the link for Add Column in the listview itself. Clicking on this link will open up the Create column page.
Add columns from Column Setting on the list view in Modern Layout
Open the list in the modern layout in which you want to add the list columns. Click on the down arrow on any column. Then click on the Column Settings option and then you will have a link to Add Columns. Clicking on that will provide you with the types of columns that you can create in the current list.
Editing list columns in SharePoint
As we have seen there are many ways available to edit the list columns, but now consider you have created new list columns and now you want to edit the columns details. Then you have to follow the below steps to edit the list columns.
Editing from list settings
Let’s assume that we have to rename the Title column to Employee name. In order to perform column editing, open the list setting page by using the steps we discussed earlier in this article. Now you will see your column in the column list. Click on the Title column.
This will open up the column editing page. Change the name of Title to Employee Name and click on OK.
Once you have clicked the OK button, you can now see that the Title column is renamed to Employee Name. Every value will be retained even though you are renaming the column name.
Editing from the list view in Modern Layout
If you just want to rename the column back to Title from Employee Name, and if you are working with the modern layout of the list, then open the list. Click on the down arrow of the column you want to edit click on Column Settings and then click on Rename.
This will open up the column rename dialog. Change it to Title from Employee Name. Your column name will be renamed to Title.
Deleting list columns in SharePoint
In order to delete the list columns in SharePoint, please open the list settings, and scroll down to the column section. Click on the column that you want to delete.
Clicking on the column, will open up the edit column, and scroll down to the page. There will be a Delete button available. Clicking on the Delete button will delete the columns from the list.
The scope of List columns in SharePoint
The scope of a List column is up to the list in which the column is created. It means if we have created a column in List A, then we can access that column in List A only. We cannot use that column in List B or some other List C. Thus the scope of the list columns is very limited and due to this, the column cannot be reused.
Summary
In this article, we have explored the list of columns available in SharePoint. We have seen the data types available in SharePoint columns, along with that we have seen how to create a list column in multiple ways, how to edit the columns in multiple ways, and also how to delete the columns from the list. We have also discussed the scope of the list columns in brief.
In the next articles in this series, we will be exploring each and every column data type in depth and know how they work in SharePoint. The article on the Single Line of text has already been published on this site. You can find that article here SharePoint Single Line of text column Explored. So my next article will be on multiple lines of text column types.