Hello
So of course the event is triggered!
but the manipulation of the fields does not give the good result that I hope
If it is the last column (debit), the previous field (credit) is not set to zero
if DBGrid1.SelectedField.FieldName = 'DEBIT' then //////////Debit priorite
begin
if ((DBGrid1.Columns[3].Field.Value > 0) AND (DBGrid1.Columns[2].Field.Value > 0) ) Then ///////////debit
begin
DBGrid1.Columns[2].Field.Value := 0;
end;
end;
And the rows all become the same (mix of rows)
I tried to act on the dataset, same thing ...
The Dbgrid is recalcitrant