Column Chooser in Data Grids

We use data grids in many of the activities in MTM. By default, only a subset of data columns that we think are important to our users are shown in the data grids due to the limited space. However, you have the option to turn on/off a column. The columns that you choose to show will be persisted next time you open MTM.

For example, in Test Plan Contents. By default, we show the columns of Order, ID, Title, Priority, Configuration, Testers, Area Path as in the following picture.

TestPlanContentsDefaultColumns

You may want to add the state of the test case column to the data grid, but remove Area Path from the data grid. Right click on the data grid header. Check State, uncheck Area Path.

ColumnChooser

Now, you get the following.

TestPlanContentsNewColumns 

The columns in a data grid can be from the test artifacts and/or work items. If you have both default type work items and custom type work items in a data grid, you will see a super set of the fields of the default type and the custom type.

If you want to access the column chooser using keyboard. First tab to the first row in the data grid, then Ctrl + UP. You will select the column header as shown in below. Now, you can do Shft + F10 to bring up the column chooser.

 KeyboardAccessColumnChooser

Thanks,

Christine Zhao

Comments

  • Anonymous
    December 22, 2011
    Found good column choosser <a href="columnchooser.codeplex.com/"><b>Column Chooser</b></a> Project Description WPF Datagrid currently dosent have column chooser. In this column chooser you can even drag and drop the column to move its position on the grid. You can even update header value on the fly just by double clicking on it. Features include: Column chooser with checkbox to make column visible and invisible. Select All checkbox is added. You can drag and drop a row from column chooser to move column in the main grid. By double clicking on any cell of column chooser you can edit the column header values. Column Chooser tool is deveoped in C# Visual Studio 2010 . You can even download the application via click once installation method.