Add, Remove, Reorder, and Sort Columns
You can find specific work items and related information more easily by adding columns to the results list for a particular query. You can then highlight the most useful data if you sort the list by one or more columns. The default display columns are; ID, Work Item Type, Title, Assigned To, and State. These columns appear in the query results for all types of work items.
The topic illustrates how to work in Team Explorer. You can perform similar procedures in Team Web Access, although the details differ slightly.
You must be a member of the Contributors group or have the Edit work items in this node permission set to Allow. For more information about query permissions, see Query for Bugs, Tasks, or Other Work Items.
For information about how to navigate within the query editor or query view using keyboard shortcuts, see Keyboard Shortcuts for the Query Editor and Query Results View.
To add, remove, and reorder columns
In Team Explorer, open a work item query.
For more information, see Query for Bugs, Tasks, or Other Work Items.
On the query results toolbar, choose Column Options.
Perform one or more of the following steps:
In the Project or Work Item Type list, choose the appropriate option to display only those columns that are defined for a particular team project or type of work item.
You should filter the list of columns if you want to focus on a specific type of work item in your query results or if your query results contain work items from other team projects.
In the Available columns list, choose a column that you want to add, and then choose > (Add selected columns).
In the Selected columns list, choose a column that you want to remove, and then choose < (Remove selected columns).
In the Selected columns list, choose a column that you want to appear in a different location in the results list, and then choose Move up or Move down (arrow that points up or arrow that points down).
If you choose Move up, the column will appear on the left of the column that precedes it. If you choose Move down, the column will appear on the right side of the column that precedes it.
In the results list, you can also change the order in which the columns appear by dragging a column to a different location.
In the Selected columns list, choose a column by which you want to sort your results list, and then choose or .
You can also sort a results list by a particular column by choosing the heading for that column.
To sort a list of results by a single column
From the query results list, choose the heading of the column by which you want to sort.
You can choose the heading again to toggle the sorting order between ascending and descending.
To sort a list of results by multiple columns
On the query toolbar, choose Column Options.
In the Column Options dialog box, choose the Sorting tab.
In the Available columns list, choose a column by which you want to sort, and then choose > (Add selected columns) .
The column appears in the Selected columns list.
Choose each column, and then choose Sort ascending or Sort descending.
(Optional) Choose a column, and then choose Move up or Move down (arrow that points up or arrow that points down) to specify the sequence of columns by which you want to sort the results.
In a list of results in Team Explorer, you can also hold down the SHIFT key and choose multiple columns in sequence to sort the list of query results.
To change the query results view
In Team Explorer, choose the or buttons to collapse an upper or lower panel, or choose the or buttons to collapse the left or right panel.
In Team Web Access, choose the bottom, right, and off links to cycle through the choices of vertical stack, side-by-side, or results-only views.
To expand and collapse leaf nodes in a direct links view or tree query
In Team Web Access:
To collapse a node, choose .
To expand a node, choose.
In Team Explorer:
To collapse all nodes, choose (Collapse All).
To collapse a single node, choose .
To expand all nodes, choose (Expand All).
To expand a single node, choose .