```
<apex:page controller="repeatlist"  showHeader="false" sidebar="false">
<apex:form >

        <apex:pageBlock >
            <apex:commandButton value="save" action="{!save}"/>
            <apex:pageBlockTable value="{!con}" var="cc">
            <apex:column headerValue="ID" width="50" breakBefore="true">
                <apex:outputtext >{!cc.id}</apex:outputtext>
            </apex:column>
              <apex:column headerValue="Firstname">
                  <apex:outputfield value="{!cc.Firstname}" >
                     <apex:inlineEditSupport event="onclick" />
                  </apex:outputfield>

              </apex:column>
              <apex:column headerValue="Modify">
                  <apex:commandButton value="save" action="{!savein}" />
              </apex:column>
              <apex:inputHidden value="{!cc.id}" id="dd" />
            </apex:pageBlockTable>
        </apex:pageBlock>

</apex:form>

```

Hi every one i need to edit individual records in the pageblock table but I dont have any idea about passing data to the controller on clicking save button.Can anyone help me in that? I have tried saving all records and it worked as charm.

```
public class repeatlist
{    
    List<Contact> con1 = new list<contact>();

    public list<Contact> getcon()
    {
        con1 = [select id, FirstName, Name from contact limit 20];
        return con1;
    }

    public pagereference save()
    {
        update con1;
        return null;
    }

    public pagereference savein()
    {
        system.debug('PGp::');
        return null;
    }
}

```