StringGrid issue in Delphi XE8 firemonkey mobile app

  

I’m using Delphi XE8 for developing mobile application and I’m facing some of the problem in TStringGrid.

I have written the following code in StringGridSelectCell event.

Showmessage(StringGrid.Cells[0, ARow]);

And this shows the proper value of the selected row at the first time. But when I have tried to click again the selected row, this event is not getting fired. And I cant able to unselect the particular row.

So, I have tried to write this message in OnClick event.

var
iRowInd: Integer;
begin
iRowInd := StringGrid1.Selected;
ShowMessage(StringGrid.Cells[0, iRowInd]);
end;

And this is not working at the first time of the click and when I clicked for the second time it works properly. This issue is only in android mobile and not in Windows.

Later, I have kept both the event code and then also I faced another issue. When I’m scrolling the Grid, it is firing the onClick event. So, it is displaying the previously selected Row value.

Please provide me some solution. And Thanks in Advance.

Comments are closed.