H
H
Hecntv2018-04-07 20:36:47
Delphi
Hecntv, 2018-04-07 20:36:47

How to transfer selected row data from DBGrid to labels?

spoiler
procedure TFormSQL.DBGrid1CellClick(Column: TColumn);
begin
formsql.DBText1.Caption:=formsql.DBGrid1.SelectedField.Text;
end;

end.

Выводит тока первую строку.

How to make it so that it transfers all the data of the line and not just the first column of the selected line?
The task is to display the information of the selected DBGrid row in DBText and then print them out, from a row of 9 columns to 9 DBText's.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kalapanga, 2018-04-08
@Yelo

Why doesn't it do it on its own? Do DBTexts have their DataSource and DataField configured?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question