Posts: 98
Threads: 17
Joined: Aug 2018
Reputation:
6
Location: The Netherlands
Hi,
I am using Delphi 11 and IW version 15.2.48.
And I am wondering if IWGrid.CurrentRow and IWGrid.ScrollToCurrentRow = True work like one expects.
If so, can you please explain (to me or in an example) how to apply this, because I can't get it to work.
Thanks in advance!
Cheers, Paul
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
What are you trying currently? Can you post your sample code?
Posts: 98
Threads: 17
Joined: Aug 2018
Reputation:
6
Location: The Netherlands
Property grdContent.ScrollToCurrentRow = True.
After clicking on the "Fill Grid" button, grid is filled with 50 rows and CurrentRow is set to 40.
But it keeps showing the top of the grid.
I have tried it sync and async, but result stays the same.
procedure TIWForm1.btnClearGridAsyncClick(Sender: TObject;
EventParams: TStringList);
begin
grdContent.Clear;
end;
procedure TIWForm1.btnFillGridAsyncClick(Sender: TObject;
EventParams: TStringList);
begin
FillContentGrid(40);
end;
procedure TIWForm1.FillContentGrid(ActiveRow: Integer);
var
r, c: Integer;
begin
grdContent.Clear;
grdContent.ColumnCount := 5;
grdContent.RowCount := 50;
For r := 0 To 49 Do
Begin
For c := 0 To 4 Do
Begin
grdContent.Cell[r, c].Text := 'Cell(' + IntToStr® + ',' + IntToStr© + ')';
End;
End;
grdContent.CurrentRow := ActiveRow;
grdContent.ScrollToCurrentRow := True;
end;
Posts: 2,256
Threads: 195
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hi Paul,
I can confirm that it is not working as it should after we changed the way that the grid renders itself in async events.
I'm working on it and I expect to have some fix soon.
Cheers,
Posts: 98
Threads: 17
Joined: Aug 2018
Reputation:
6
Location: The Netherlands
Hi Alexandre,
Thank you for your feedback.
Looking forward to your fix.
Cheers, Paul
Posts: 98
Threads: 17
Joined: Aug 2018
Reputation:
6
Location: The Netherlands
Hi Alexandre,
I guess you haven't had the time yet to implement your fix in the last new version.
Any ETA on when it will be fixed?
Cheers, Paul
Posts: 98
Threads: 17
Joined: Aug 2018
Reputation:
6
Location: The Netherlands
Hi Alexandre,
Can you also have a look at this?
Thanks!!
Posts: 2,256
Threads: 195
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hi Paul,
yes sure. I thought this was resolved since we changed the IWGrid rendering in async. Let me have a look and get back to you