Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.757 Beiträge
 
Delphi 10.4 Sydney
 
#6

Re: Datensatz aus Stringgrid in Editfelder ausgeben

  Alt 26. Jan 2009, 09:37
Guten Morgen,

eine Zeile des StringGrids kannst Du mit rows auslesen:

Zitat von DelphiHilfe:
Lists the strings and their associated objects for each row.

property Rows[Index: Integer]: TStrings;

Description

Use Rows to access all the strings for a single row, along with their associated objects. The number of strings and associated objects is always equal to the value of the RowCount property, the number of rows in the grid. The Index parameter is the number of the row, where the value of the first row in the grid is zero.

To get all the strings and objects for a column, rather than for a row, use the Cols property.
Im OnClick Ereignis bekommst Du u.a. die Zeilennummer übermittelt.


Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat