Can you please elaborate on what exactly is the business need on this? That will help in understanding the exact issues and possible solutions. Why is this required? What kind of data is stored in the table component? etc..
The table holds details for a purchase. Fields include Quantity, description, part number, unit cost, total (which is calculated in a rule), charge code and nominal code.
In an order, most of the time the order will be charged to the one code even if it has many line items so the need is to auto populate the charge code and nominal code fields with the same value as selected for the first line. This can be changed by the user if required.