TTMSFXMGrid - Row selected

Hi,


How can I get the index of row selected ?

TMSFMXGrid1.SelectionMode is initialize to smSingleRow.

for i := 0 to TMSFMXGrid1.RowCount - 1 do
   begin
      if TMSFMXGrid1.RowSelect then
      begin
         // I never get here even if row is selected
      end;
end;

Thanks.

You can use the TMSFMXGrid1.FocusedCell.Row property to retrieve the selected row.

Thanks it's work fine.