bradley Rice
bradley Rice

Reputation: 107

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.

Upvotes: 0

Views: 486

Answers (1)

bradley Rice
bradley Rice

Reputation: 107

invoicesGrid.SelectRow(invoicesGrid.RowCount-1);

Upvotes: 1

Related Questions