简体   繁体   中英

how to select last row in TGrid on the click of a button

how does one select the last row in a TGrid when the user clicks on a button? I have a table which is filtered by date and I have a start date and end date button. When the user clicks them I need it to select the specific row.

invoicesGrid.SelectRow(invoicesGrid.RowCount-1);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM