function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Samuel JohnsonCBESamuel JohnsonCBE 

Table in Visualforce

Is there a way to use the standard save button and have my visualforce fields change to be a read type format just like other fields on other objects.  Also I would like to know if I can format the cells just like I have on my excel sheet.  Here is what my visual force page looks like, and the excell sheet.  I would like it to like the same if possible and have the capability to save the field values and not be able to edit them untill hit edit button.
 User-added image
User-added image
viruSviruS
Yes it is possible .. For read only you should use outputText and for edit use inputfield  and customize / develop your VF page like same formate 
Samuel JohnsonCBESamuel JohnsonCBE
Here is my code where would I put the output text and how would I be able to use the standard save and edit button on the standarDontroller = "H_A_I_R__c"

<apex:page standardController="H_A_I_R__c" >
<html>
<body>
<Title>Healthcare</Title>
<table width="600" border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
<table frame="box" rules="none">
<tr>
<td bgcolor="#81BEF7"></td>
<td colspan="3" align="Center" bgcolor="#81BEF7"><apex:form ><apex:inputtext /></apex:form >

<b></b></td>
</tr>


<tr>
<td bgcolor="#81BEF7"></td>
<td align="Center" bgcolor="#81BEF7"><b>Baseline</b></td>
<td align="Center" bgcolor="#81BEF7"><b>Actual</b></td>
<td align="Center" bgcolor="#81BEF7"><b>Variance</b></td>
</tr><tr>

<td bgcolor="#81BEF7"><b>Expenses</b></td>
<apex:form >
<td><apex:inputtext /></td>
<td><apex:inputtext /></td>
<td><apex:inputtext /></td>

</apex:form>
</tr><tr>


<td bgcolor="#81BEF7"><b>Margin $</b></td>
<apex:form >
<td><apex:inputText /></td>
<td><apex:inputText /></td>
<td><apex:inputText /></td>
</apex:form>
</tr>


<tr>
<td bgcolor="#81BEF7"><b>Margin %</b></td>
<apex:form >
<td><apex:inputText /></td>
<td><apex:inputText /></td>
<td><apex:inputText /></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Unit Yield</b></td>
<apex:form >
<td bgcolor="#A4A4A4"></td>
<td><apex:inputText /></td>
<td bgcolor="#A4A4A4"></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Unit Cost</b></td>
<apex:form >
<td bgcolor="#A4A4A4"></td>
<td><apex:inputText /></td>
<td bgcolor="#A4A4A4"></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Staffing</b></td>
<apex:form >
<td><apex:inputText /></td>
<td><apex:inputText /></td>
<td><apex:inputText /></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Placement #</b></td>
<apex:form >
<td><apex:inputText /></td>
<td><apex:inputText /></td>
<td><apex:inputText /></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Placement $</b></td>
<apex:form >
<td><apex:inputText /></td>
<td><apex:inputText /></td>
<td><apex:inputText /></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Total Inv. #</b></td>
<apex:form >
<td bgcolor="#A4A4A4"></td>
<td><apex:inputText /></td>
<td bgcolor="#A4A4A4"></td>
</apex:form>
</tr>

<tr>
<td bgcolor="#81BEF7"><b>Total Inv. $</b></td>
<apex:form >
<td bgcolor="#A4A4A4"></td>
<td><apex:inputText /></td>
<td bgcolor="#A4A4A4"></td>
</apex:form>
</tr>
</table>
</table>
</body>
</html>
</apex:page>