IWGrid ScrollToCurrentRow

<< Click to Display Table of Contents >>

Navigation:  Forum >

IWGrid ScrollToCurrentRow

Forum link

 

Pages: 1 2

 


 

12-14-2021, 09:41 AM:

 

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

 


 

12-20-2021, 08:52 PM:

 

What are you trying currently? Can you post your sample code?

 


 

12-21-2021, 11:56 AM:

 

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&reg; + ',' + IntToStr&copy; + ')';

 

    End;

 

  End;

 

  grdContent.CurrentRow := ActiveRow;

 

  grdContent.ScrollToCurrentRow := True;

 

end;

 


 

12-23-2021, 08:05 PM:

 

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,

 


 

12-23-2021, 10:22 PM:

 

Hi Alexandre,

 

Thank you for your feedback.

 

Looking forward to your fix.

 

Cheers, Paul

 


 

02-03-2022, 03:45 PM:

 

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

 


 

04-05-2022, 01:19 PM:

 

(12-23-2021, 08:05 PM)Alexandre Machado Wrote: [ -> ]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,

 

Is there any chance this will be addressed in the next release of IW?

 

Cheers, Paul

 


 

06-14-2023, 10:23 AM:

 

(04-05-2022, 01:19 PM)PaulWeem Wrote: [ -> ] (12-23-2021, 08:05 PM)Alexandre Machado Wrote: [ -> ]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,

 

Is there any chance this will be addressed in the next release of IW?

 

Cheers, Paul

 

Hi Alexandre,

 

have you had time to have a look at this?

 

Cheers, Paul

 


 

07-10-2023, 12:08 PM:

 

Hi Alexandre,

 

Can you also have a look at this?

 

Thanks!!

 


 

07-10-2023, 09:36 PM:

 

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