Scroll a grid to last line?

Started by Peter2, February 07, 2017, 01:44:35 AM

Previous topic - Next topic

Peter2

I have a Grid where I want to scroll / to jump to the last line via Lisp. I tried
Code (autolisp) Select
(dcl-Grid-SetCurCell project/main_dlg/grd_daten (dcl-Grid-GetRowCount project/main_dlg/grd_daten))
but nothing happened.
What to do?
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

marcoheuer

hello peter,
try this:
Code (autolisp) Select
(dcl-Grid-SetCurCell project/main_dlg/grd_daten (1- (dcl-Grid-GetRowCount project/main_dlg/grd_daten)))

best regards
marco
Marco Heuer
Dipl. Ing.
www.arc-aachen.de
Airport Office

Peter2

Thanks Marco

I missed the 0-based counting of the rows .. :-[
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10