When the user manually changes the column width or moves the column to another position, applies column sorting, or even uses multi column sorting (if the grid supports it), this information is saved. For example, if you change the column position and reopen this grid, the columns will be displayed in the same arrangement as before. Or, if you change the width of the column, the given width of the column will be fixed and will not change the given width during auto resizing of the columns.
For quick action, you can double-click on the right border of the column. This action will clear the saved width of one column and automatically resize all columns that were not resized manually.
Note this action does not sort the changed columns and does not change the active column sorting mode.
To open the context menu with the entire list of actions, you need to right-click on the datagrid header. The following context menu will appear:
The following describes the operations available in the header context menu :
Reset "Name" Column Size To Default - clears the stored change width to one column contained in "Name" and starts the auto columns resize mechanism.
Reset Columns Size To Default - clears the saved manually changed columns width and starts the auto resize mechanism.
Move "Name" Column To Initial Order- takes the column and moves it to the number of the order in which this column is contained in the original list. That is, if we have a list of columns [1, 3, 4], and column 2 is hidden, then after adding the 2nd column to the grid and choosing this operation from the context menu for the 3rd column, the 3rd column will remain in its place; it will be [1, 2, 3, 4]. If we do not add the 2nd column and choose the same operation for the 3rd column, then again the 3rd column will remain in its place.
Reset Columns Order - order the columns in such a way that they were from the very beginning.
Clear "Name" Column From Sort List - clears or disables the sort column. This operation is disabled by default. If you move the mouse to an inactive item, you will see information on how to activate this item. It becomes active only when we have two or more sorting columns. If you remove the first used sorting column from the list, the secondary sorting column will become the primary one. If you try to remove a non-sorting column from the sorting list, a message will appear that this column is not in a sorting state.
Reset Columns Sort To Initial- clears all specified sorting and activates the initial sorting. The following are some limitations on the use of this option:
if the grid configuration does not have an initial Sort parameter, a warning message will appear if this option is selected
if the grid configuration does not have some columns in the initial Sort parameter, a warning message will appear if this option is selected
Note: this context menu will not work with some grids that do not use data storage.