1 (edited by toutheveste 2020-03-01 01:41:54)

Topic: TableGrid Auto Select

I Need Script .... TableGrid Auto  Selected For Editing After Serching On Text Box .MVD

Re: TableGrid Auto Select

procedure Form1_TableGrid_OnChange (Sender: TObject);
begin
    if Form1.TableGrid1.RowCount > 0 then
        Form1.TableGrid1.SelectedRow := 0;
end;

Use the above code in the tableGrid onChange event to always select the first row to edit

@thezimguy