tfs - Can I bind query from WIQL to dataviewer/grid? -
i have code outputs results textbox
try { // connect work item store tfsteamprojectcollection tpc = new tfsteamprojectcollection( new uri("xxx")); workitemstore workitemstore = (workitemstore)tpc.getservice(typeof(workitemstore)); // run query. workitemcollection queryresults = workitemstore.query(richtextbox1.text); foreach (workitem workitem in queryresults) { richtextbox2.text = string.join(environment.newline, workitem.areapath, workitem.project); } } catch (exception exceptionmessage) { messagebox.show(exceptionmessage.tostring()); } } can treat query result sql query sql server , bind datagrid or dataviewer? can't seem work, don't understand how data handled , returned wiql/tfs.
no, need query result , place them table in dataset, , bind dataset datagrid. refer article details: http://blogs.msdn.com/b/briancombs/archive/2006/09/19/762210.aspx
Comments
Post a Comment