title: SharePoint Discussion Board View to show one discussion thread
body: <p>I need to show a particular thread that resides in a discussion board. I am currently trying to use SPViews.</p>
  
  <p>The following is my code</p>
  
  <pre><code>        SPView threadedView = discussionBoard.Views["Threaded"];
      threadedView.Title = "Comments WebPart";
  
      //threadedView.Query = query.ToString();
      threadedView.RenderAsHtml();
  </code></pre>
  
  <p>however this view is giving me all the discussion threads in the discussion board not a single thread which is needed. tried also to set a query for the view but was useless. can anyone help pls.</p>