int recordCount = grid.Table.Records.Count;
before to see it that helps.
It might also be that the SynchronizeGridWithEngine call that happens the first time the grid is displayed tries to scroll the current record into view when the grid is initially displayed.
You could avoid that by setting the record to be the current element:
e.g.
grid.Table.DisplayElements[top].ParentRecord.SetCurrent();
>int recordCount = grid.Table.Records.Count;
>
>before to see it that helps.
>
>It might also be that the SynchronizeGridWithEngine call that happens the first time the grid is displayed tries to scroll the current record into view when the grid is initially displayed.
>
>You could avoid that by setting the record to be the current element:
>
>e.g.
>grid.Table.DisplayElements[top].ParentRecord.SetCurrent();
>
>>int recordCount = grid.Table.Records.Count;
>>
>>before to see it that helps.
>>
>>It might also be that the SynchronizeGridWithEngine call that happens the first time the grid is displayed tries to scroll the current record into view when the grid is initially displayed.
>>
>>You could avoid that by setting the record to be the current element:
>>
>>e.g.
>>grid.Table.DisplayElements[top].ParentRecord.SetCurrent();
>>