Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

LMDGrid: determine which cell has changed

Hi, 

im searching for a method to determine when a cell has been edited.
Maybe something like that:



procedure TfrmSqlBuild.grdOutputAfterEdit(Sender: TObject; ACol, ARow: Integer;  Text: WideString);
var
   c: integer;
begin
   if ACol = 1 then            
   begin
      if (Text = 'ASC') or (Text = 'DESC') then
      begin
         // Sortierreihenfolge hinzufügen
         c := (ColReihe.Chooser as TLMDGridPickListChooser).Items.Count;
         (ColReihe.Chooser as TLMDGridPickListChooser).Items.Add(IntToStr(c+1));
         grdOutput.Cells[2, ARow].Text := IntToStr(c+1);
      end;
   end;
end;

Any Ideas?

Best regards
Horst

Comments

Sign In or Register to comment.