Topic: SelectedRow in a TableGrid
Hello Dmitry
I would like to retrieve two values into two columns of my TableGrid coming from a selected row.
I see that property SelectedRow is not available from MVD.
I've tried to "tinker" a script but without efficency, something like :
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
Var SelectedRow : Integer;
Google : String;
Web: TWebBrowser;
begin
Web := TWebBrowser.Create(Map);
Map.Show;
TWinControl(Web).Parent := Map;
Web.Width := 800;
Web.Height := 800;
Google := 'https://www.google.com/maps/?q=';
Form1.TableGrid1.ScrollToRow(Form1.TableGrid1.SelectedRow);
Web.Navigate(Google + Form1.TableGrid1.Cells[5,SelectedRow]+ ',' + Form1.TableGrid1.Cells[6,SelectedRow]);
end;
But without success.
What would be good script with it ?
Thanks by advance
JB