TDataGrid.RowIndex
redirigé depuis TDataGrid.SetRowIndex
| TDataGrid = class (TObject) | Interface de TDataGrid | Exemples de TDataGrid |
Retourne l'index de la ligne courante
Syntaxe
property RowIndex: Integer read GetRowIndex write SetRowIndex
Remarques
- Les lignes sont indexées de 0 à RowCount-1. En dehors de cet intervalle, une erreur est déclenchée (méthode Set).
- La méthode Set (écriture) définit la ligne indexée comme ligne courante : équivalent à Goto.
Exemples
dgExemple.Find('NOM','Toto');
InformationDlg('Toto est en position ' + IntToStr(dgExemple.RowIndex + 1));
InformationDlg('Toto est en position ' + IntToStr(dgExemple.RowIndex + 1));