Need to display Fileds in vf page from Query written in Controller
<p>I have a requirement where i need to display fields fetched from query in controller to Vf page without using pageblockTable.</p>

<p>Please see the below code that i am trying.</p>

<p>Apex code : </p>

<pre><code>public class ViewDetailscontroller
</code></pre>

<p>{</p>

<pre><code>public List&lt;Course__c&gt; coursesList{get; set;}
public Course__c coursesobj{get; set;}

  public ViewDetailscontroller()

           {

coursesobj =[SELECT Id,Answer_1__c,Web_Score_SwU__c FROM Course__c where Lead__c =: Leadid ];
} 
</code></pre>

<p>}</p>

<p>Vf page:</p>

<pre><code> &lt;apex:page standardController="Lead"  extensions="ViewDetailscontroller" tabStyle="Course__c"&gt;

    &lt;apex:form&gt;
      &lt;apex:pageBlock rendered="{!intrestedinData_Analytics}" &gt;
                    &lt;apex:pageBlockSection &gt;

                    &lt;apex:outputField value="{!coursesobj.Batch_for_DA__c}"/&gt;

                    &lt;/apex:pageBlockSection&gt;
                    &lt;/apex:pageBlock&gt;
    &lt;/apex:form&gt;

    &lt;/apex:page&gt;
</code></pre>

<p>Problem here is i cant bind list values from Controller to pageblock tag or anyother tag apart from pageblocktable.</p>

<p>Please suggest,thanks.</p>