In the FNCGrid, I cannot get the selected cell values. The Grid is populated with a TMSFNCGridDatabaseAdapter, and all the rows are displayed.
I'm trying to get the value of column 3 for all selected rows like this :
var i : Integer;
ARowIndex : Integer;
begin
Memo1.Lines.Clear;
for i := 0 to grdAddresses.RowSelectionCount -1 do begin
ARowindex := grdAddresses.SelectedRow[i];
Memo1.Lines.Add(IntToStr(ARowIndex) + ' : ' + grdAddresses.Cells[3, ARowIndex]);
end;
end;
ARowIndex is correctly populated with the selected row ID, but Cells[3, ARowIndex] always returns an empty string, and it doesn't matter which value I use for the Column number it's always blank.
Any ideas ?
Thanks