Is there any way to set the columns that are displayed when the PickWorkItemsControl class is used in a work item custom control

By default, it appears that the ID, Work Item Type, Title, and State columns are always displayed. I'd like to be able to change this programatically. Is there a way

The PickWorkItemsControl class does have a method, WorkItemFieldsToReturn, that has a getter but not a setter. I haven't been able to recreate a scenario where the getter ever returns any fields in the ArrayList that is returned. When does the getter return anything


Re: Team Foundation Server - Work Item Tracking Setting columns displayed by PickWorkItemsControl?

Hayder Casey-MSFT

Hi Steve,

Unfortunately you cannot change the columns displayed in PickWorkItemsControl. However, you might want to take a look at WorkItemResultGrid (http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.workitemtracking.controls.workitemresultgrid(VS.80).aspx), it might be what you are looking for. Hope that helps.