Scroll a grid to last line?

Started by Peter2 · 2017-02-07 09:44 UTC · 2 replies · SMF topic #2480

I have a Grid where I want to scroll / to jump to the last line via Lisp. I tried
(dcl-Grid-SetCurCell project/main_dlg/grd_daten (dcl-Grid-GetRowCount project/main_dlg/grd_daten))
but nothing happened.
What to do?
hello peter,
try this:
(dcl-Grid-SetCurCell project/main_dlg/grd_daten (1- (dcl-Grid-GetRowCount project/main_dlg/grd_daten)))

best regards
marco
Thanks Marco

I missed the 0-based counting of the rows .. :-[