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

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
dreamnyj
Posts: 5
Joined: Mon Oct 22, 2018 4:51 am

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

Post 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.
dreamnyj
Posts: 5
Joined: Mon Oct 22, 2018 4:51 am

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

Post by dreamnyj »

SendMessage(XLSGrid1.Handle, WM_VSCROLL, SB_TOP, 0);
SendMessage(XLSGrid1.Handle, WM_HSCROLL, SB_LEFT, 0);
Post Reply