Page 1 of 1

Txlsgrid ,how to get to the front of the table.

Posted: Fri Aug 12, 2022 4:52 am
by dreamnyj
Txlsgrid control, how to get to the front of the table.
Because if the user drags the scroll bar and loads XLS again, it will think that there is no content in it.
So I would like to ask how to code to the upper left corner of the table.
1. Select a cell,
2. Control scroll bar
3. Navigate to row 1 and column 1 of the table.

Re: Txlsgrid ,how to get to the front of the table.

Posted: Fri Aug 12, 2022 5:20 am
by dreamnyj
SendMessage(XLSGrid1.Handle, WM_VSCROLL, SB_TOP, 0);
SendMessage(XLSGrid1.Handle, WM_HSCROLL, SB_LEFT, 0);