if I change to readonly, the column will be freeze, the cashier won't be able to add new record.
if I change back to readonly=.f., the cashier will be able to go to the previous record and edit.
>>I use grid to enter the items.
>>
>>
>>Code Qty Price Amount
>>HD1TB 1 100 100
>>HD2TB 2 150 300
>>
>>
>>once the cashier enter the item and save, the system will lock the stock code.
>>the cashier can edit the Qty or Price, or enter new records, but cannot change the HD1TB or HD2TB
>>
>>is that possible?
>>
>>Regards,
>>
>>Jerry
>
>You could set the column in the grid to readonly . Something like ThisForm.mygrid.colmum1.readonly = .T. ...and then change it back to .F. if you adding a new record.