Hello i have a jGridView, showing data correctly , i want display text when i "click" any cell, but i need always the first column. Tried:
jgView.Cells[ iCol, iRow ] + LineEnding
but (and i think is the bug) show me correctly the thwo fisrt rows, all below it display empty.
Any idea?
BufDataset1.First;
iRow:= 0;
with BufDataset1 do
while not EOF do begin
jgView.Cells[ 0, iRow ]:= FieldByName( 'seexid' ).AsString;
jgView.Cells[ 1, iRow ]:= FieldByName( 'product' ).AsString;
iRow:= iRow + 1;
Next;
end;
procedure TAndroidModule1.jgViewClickItem(Sender: TObject;
ItemIndex: integer; itemCaption: string);
var iRow, iCol: Integer;
begin
jgView.IndexToCoord( ItemIndex, iCol, iRow );
ShowMessage( 'Columna= ' + IntToStr( iCol ) + ': ' + 'Fila= '+ IntToStr( iRow ) + LineEnding +
jgView.Cells[ iCol, iRow ] + LineEnding +
itemCaption);
jtxtProductSelected.Text:= jgView.Cells[ iCol, iRow ];
end;