I need to scroll a particular row in view if it is currently not visible. Therefore I tried to use method 'IsRowInView', but it doesn't worked as expected. Looking at the code of 'function TNxCustomGridControl.IsRowInView':
CODE
function TNxCustomGridControl.IsRowInView(const Index: Integer): Boolean;
begin
Result := SelectedRow < Pred(FFirstRow + GetVisibleCount);
end;
begin
Result := SelectedRow < Pred(FFirstRow + GetVisibleCount);
end;
this method doesn't respect parameter 'Index'!
Here my corrected version:
Result := (Index < (FFirstRow + GetVisibleCount)) and (Index >= FFirstRow);
Best regards