Thanks for this, however this highlights the very issue I am talking about,
there is a disconnect between what the code is doing and what you as the developer are trying to achieve.

The code give no sense of this is doing buttons at all (this isn't a criticism as you are doing what is required with the restrictions the cWebGrid puts on the developer).

There is a complete non re usability about this code

Code:
For iFor from 0 to (SizeOfArray(tDados)-1)
                    
                     Move tDados[iFor].sRowId to aTheRows[iFor].sRowId                     
                     Move (tDados[iFor].aCells[2].sValue + "-" + tDados[iFor].aCells[0].sValue + "-" + tDados[iFor].aCells[1].sValue) to aTheRows[iFor].aCells[0].sValue//Document
                     Move (tDados[iFor].aCells[3].sValue + "-" + tDados[iFor].aCells[4].sValue)                                       to aTheRows[iFor].aCells[1].sValue//Costumer
                     Move ((tDados[iFor].aCells[6].sValue))                                                                           to aTheRows[iFor].aCells[2].sValue//Value
                     Move iMarcado                                                                                                    to aTheRows[iFor].aCells[3].sValue//Select
                 Loop
The code required for ManualGrids is disjointed to me.