You need to sign in to do that
Don't have an account?

Table with 4 rows and 3 columns
Hi There,
i wrote a code like dis
------ vf page----------
<apex:page controller="clscontact" >
<apex:pageBlock >
<apex:pageBlockTable value="{!con}" rows="3" columns="4" var="cc">
<apex:column style="width:20px;" ><apex:facet name="header">Name</apex:facet> {!cc.name}</apex:column>
<Apex:column style="width:50px;" ><apex:facet name="header">Email</apex:facet> {!cc.email}</apex:column>
<Apex:column ><apex:facet name="header">Phone</apex:facet> {!cc.phone}</apex:column>
<Apex:column ><apex:facet name="header">Account </apex:facet> {!cc.account.name}</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
------------- Apex controller ----------
public class clscontact
{
public list<contact>con{get;set;}
public clscontact()
{
con=[select name,email,phone,account.name from contact];
}
}
i am getting 4 cols and 3 rows but i am unable to enter a value in rows.
how can i enter a value in rows anyone suggest me...
I'm sorry, but I don't get what you are asking.
What do you mean with enterning a value ?
Display the info as input?
Display plain text that you want?
Hi,
I need a table with 4 columns and 3 rows in a visualforce view page and then ineed to enter a values in table rows.
tell me how can i do that..
hard-coded values or values from an object?
Hi,
sorry i didn't get u wat u said but , i need to manually enter the data in the vf page in table....
Take this VF code
Controller
And tell me if either 'A' or 'B' is close to what you are looking for.
Regards.
k its showing rows with manual entry of data but ,what ever the values i am entering in rows are not binding to database fields.i.e in record its showing noting in that row values.
How can i do that. do i need to create 3 fields in object like name1,name2,name3.
suggest me.