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.
Txlsgrid ,how to get to the front of the table.
Re: Txlsgrid ,how to get to the front of the table.
SendMessage(XLSGrid1.Handle, WM_VSCROLL, SB_TOP, 0);
SendMessage(XLSGrid1.Handle, WM_HSCROLL, SB_LEFT, 0);
SendMessage(XLSGrid1.Handle, WM_HSCROLL, SB_LEFT, 0);