Subject Re: [IBO] How to position selected record in grid to center????
Author Geoff Worboys
> Maybe I don't understand, but there doesn't appear to be
> a TIB_Grid.TopRow property, there is a TopRowNum, but
> it doesn't appear to adjust where the selected row is
> either. Could you give me more details on to use it.

Heres some code that achieved the desired result in one of my demo
apps...

with EmployeeDQ do
begin
if Locate( 'DEPT_NO', 622, [] ) then
begin
EmployeeGrid.TopRowNum := EmployeeGrid.GridRow[RowNum] -
(EmployeeGrid.VisibleGridRows div 2 );
ShowMessage( 'Found Dept' );
end;
end;


--
Geoff Worboys
Telesis Computing