is anyone here using tms grid ? i need to get the previous (old) value of a cell on event on validate cell. how can i get it. because i need to make comparison between the old value and the new value.

is anyone here using tms grid ? i need to get the previous (old) value of a cell  on event on validate cell. how can i get it. because i need to make comparison between the old value and the new value. 

Here is the on validatecell event procedure 

procedure TfrmKasirUmum.grdMenuCellValidate(Sender: TObject; ACol, ARow: Integer;
  var Value: string; var Valid: Boolean);
begin
// 
end;

if i give the valid parameter to false, the new cell value will be revert back to the old value. i certainly believe there is a way to get the old value. but i don't know how. so please help me....

thanks in advance

Comments

  1. André Mussche  great. it works.... thanks :)

    ReplyDelete
  2. Glad to help you :) TMS Grid is a nice powerfull grid but sometimes also irritating for little small things... So I dig deep into the code once in a while

    ReplyDelete
  3. wow nice.... it's mean i can ask you another question later. i use this grid quit extensive... but very seldom to dig in to the code...

    ReplyDelete

Post a Comment