I need to change the value in a field in a DBGRid.
I use the following code:
Form_LettersDisplay.ADOTable1.edit;
Form_LettersDisplay.ADOTable1.FieldByName('MemLetter').AsString := 'Sent';
Form_LettersDisplay.ADOTable1.post;
This works but on the first record in the dataset, not the record I selected.
How can I solve this problem?
I use the following code:
Form_LettersDisplay.ADOTable1.edit;
Form_LettersDisplay.ADOTable1.FieldByName('MemLetter').AsString := 'Sent';
Form_LettersDisplay.ADOTable1.post;
This works but on the first record in the dataset, not the record I selected.
How can I solve this problem?