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.
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?