You can go to the Page layout of the opportunity object and in the page layout drag and drop the fields you want to show in the VF page. Hope its clear :)
or if you want to do it by programming you can just refer as follows, suppose I have a page in which I need to show/refer the field of Product2 (opportunity Product) Object-
<apex:column headerValue="{!$ObjectType.Product2.Fields.Family.Label}" value="{!a.Product2.Family}"/> // This will show me the "family" field of the Product2 object.
Mark it as the best answer if it solves your issue!
hii Shirish Dwivedi... sorry i don't understand .. i try but it will not working . please help me to Show fields opportunity name ,stage name,account name(it needs to clickable and on click navigate to account view ).
Hope its clear :)
<apex:column headerValue="{!$ObjectType.Product2.Fields.Family.Label}" value="{!a.Product2.Family}"/>
// This will show me the "family" field of the Product2 object.
Mark it as the best answer if it solves your issue!
Thanks
sorry i don't understand .. i try but it will not working . please help me to Show fields opportunity name ,stage name,account name(it
needs to clickable and on click navigate to account view ).
Try this, If this helps mark Best Answer!!!