Async Update of Server Side Dataset position

I am trying to use the TTIWDBAdvWebGrid component in ASYNC mode and

have an issue where the GRID does not sync it's record position to the

Server side dataset that the grid is using.



I have setup the grid Properties as recommended by the

TTIWDBAdvWebGrid Developers guide



I have a simple table the has an ID row and a few other data fields

(Name, address etc)

The Grid shows the records properly. In order to support Async row

tracking to the server side dataset, I have set the Grid properties

below



AsyncActiveRowMove = TRUE

MouseSelect = MSMove



I created an event handler for the async row selection



procedure TFrmClients.

TimesGridAsyncGotoRow(Sender: TObject;

EventParams: TStringList; Row: Integer);

begin

  Webapplication.ShowMessage( UserSession.QryTimes.FieldByName('ID').AsString);

end;





When I click on a row on the grid, I get the ID for the first row in

the grid, not the row that was selected.

My understanding was that the AsyncActiveRowMove option would cause the

Server Side Dataset to track to the record position of the selected

row in the grid?



What am I doing wrong?


This question was replied to by a private email message.

Can share the answer of this topic? I'm having the same difficulty.

I decided the topic this way:

procedure TfrmGridTabelas.IWGridTabelasAsyncLinkClick(Sender: TObject;
  EventParams: TStringList; RowIndex, ColumnIndex: Integer);
var KeyValue: integer;
begin


  IWGridTabelas.DataSource.DataSet.FindFirst;
  IWGridTabelas.DataSource.DataSet.MoveBy(RowIndex);
  KeyValue := IWGridTabelas.DataSource.DataSet.FieldByName('ID_TABELAS').Value ;

end;


There is one more practice? or Right?