Subject | Re: [IBO] How to position selected record in grid to center???? |
---|---|
Author | Geoff Worboys |
Post date | 2002-05-24T07:15:55Z |
> Maybe I don't understand, but there doesn't appear to beHeres some code that achieved the desired result in one of my demo
> 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.
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