title: Locate a record in a TDBAdvGrid with PageMode off
body: <p>I am desperately trying to do a Locate on a record whose PK is associated to Column 0 in a TDBAdvGrid. The TMS Component Pack version I have is 6.8.something.
  I am using it in a Win7x64 with Delphi XE 1.
  PageMode is turned off because I will need sorting and grouping at the client level(no backend db for now, only client datasets in offline mode).</p>
  
  <p>My code for the locate is like this:</p>
  
  <pre><code>procedure TMainFrm.EditAction;
  var ItemID : Integer;
      ItemIDStr: String;
  begin
    // With PageMode set to false(which we need), the dataset is not synchronized.
    //ItemID := GetActionGrid.Columns[ 0 ].Field.AsInteger;
    ItemIDStr := GetActionGrid.Cells[ 0,GetActionGrid.SelectedRow[ 0 ] ];
    ItemID := StrToIntDef( ItemIDStr ,-1 );
  //  GetActionGrid.Fields[ 0 ].AsInteger;
    If DMMain.CLNActions.Locate( 'ITEM_ID',ItemID,[] ) Then
      CreateApplicationForm( TActionFrm, True );
  end;
  </code></pre>
  
  <p>But it does not work because the ItemIDStr always returns an empty string.
  I am really short of ideas now.</p>
  
  <p>Suggestions?</p>
  
  <p>Thank you!</p>