...
The column picker contains two Lists:
Available Columns (on the left). A list of all of the columns available in the table, including a header.
Selected Columns (on the right). A list of the currently selected columns, including a header.
Move buttons (right and left), shown between the two lists. These allow the user to move items between the lists.
Reorder buttons (up and down), shown underneath the Selected Columns list. These allow the user the reorder the selected items.
Selected items count, shown next to the Selected Columns header. It shows the number of selected items out of the total number of items, for example: 7/22.
A Search bar above each list (optional). This allows the user to quickly locate specific items. The search bar is optional, depending on the number of items.
A vertical Scrollbar, used where the list is too long to be displayed in its container.
A Restore Defaults button (optional), shown in the bottom-left corner of the dialog box.
Done and CancelDialog Buttons, shown in the bottom-right corner of the dialog box.
...
In this case, clicking the Done button:
shows an error message at the bottom of the dialog.
disables the button.
Limiting the number of items
...