DependencyList Control

Topics: Developer Forum
Feb 27, 2007 at 4:18 PM
Hi Naren,

I took your sample WIReference control and tried to take it one step further.
What I am trying to do is create a control to enable Adding/Creating work items as dependent work items for the current WI - Like Child Work items.
So the implementing control looks like a listview and 2 buttons (one for Add and one for Create). I'm using the WIPicker for the "Add" and it works fine (i can see the Added work item in the listview - showing the ID,WIType,Title,State in the listview).
The thing is it's very hard for debugging. The way for me to debug so far was to open an instatce of devenv and go for new>task (i added the control to my task work item) and play with my buttons. I'm sure there is a better way to do it.
The second thing is knowing the order of the actions. It looks like the InvalidateDatasource function is happening alot. I don't quite know what triggers the other "must" functions (clear, FlushToDatasource..).
Could you Explain When those functions are called, at normal WI behavior, and give some best practices for debugging custom controls within WI's.
Thanks for your help. Looking forward to here from you.