Hello!
Is there a way to scroll to an item in the list (TTMSFMXGrid)? In the VCL version there is a function - something like "ScrollToItem".
I want to select an item in the list and show it also (when it is not in the first shown visible ones).
Example:
- list with 100 items
- view on screen items 20-30
- want to select and goto item 60
Till now I can only select it.
Hi,
You need to set the focusedcell after an updateStyle call (in the formcreate).
If you implement the code in a button click event the UpdateStyle call is not necessary.
var
cl: TCell;
begin
TMSFMXGrid1.ColumnCount := 10;
TMSFMXGrid1.RowCount := 100;
TMSFMXGrid1.UpdateStyle;
cl.Col := 2;
cl.Row := 60;
TMSFMXGrid1.FocusedCell := cl;
Kind Regards,
Scheldeman Pieter
Sorry, wrong component name.
It is in TTMSFMXTableView