Apex:Column Tag

Apex:Column Tag :-In our previous Salesforce Tutorial we have learned about <apex:inputtextarea> tag and it’s working. In this salesforce training tutorial we are going to learn about apex:column tag and it’s working when used in visualforce page.

<apex:column> :- apex:column tag is used to create columns in visualforce page. When using <apex:column> tag  in visualforce page it always must be written between <apex:datatable> tag or <apex:pageblocktable>tag as child component. When data table is created then only we can define columns to that table so we have to create data table first.

Different attributes supported by apex:column tag.

BreakBeforeColspandirFooterClass
footeronclickfooterlangfootercolspanfooterdir
footerdblclickfooteronkeydownfooteronkeypressfooteronkeyup
footeronmousemovefooteronmousemovefootermouseouttitle
footermouseupfooterstylefootertitlefootervalue
headerclass`headercolspanheaderdirheaderlang
headeronclickheaderondblclickheaderonkeydownstyle
headeronkeyupheaderonmousedownvalueid
headeronmouseupheaderstyleheadertytleheadervalue
headeronmouseoverlangonclickondblclick
onkeydownonkeypressonkeyuponmousedown
onmouseuponmouseoutonmouseoveronmouseup
renderedrowspanheaderonkeypressstyleclass
footermouseoverheaderonmousemovewidth 

Let us see how <apex:column> tag works.

Create new Visualforce page.

Apex:Column Tag

Click on create page apex column link as shown below.

apexcolumn-2

Now write visualforce page code .

apexcolumn

In this CRM Salesforce Training Tutorial we are creating columns for data table. To insert columns pageblocktable must be creates. Here we have created lead name, lead source, lead status, lead email fields as columns.

Output :- apex:column tag

apexcolumn0