Lazarus

Free Pascal => Beginners => Topic started by: JLWest on December 04, 2022, 04:36:36 am

Title: Grids - Is there a way? (Solved)
Post by: JLWest on December 04, 2022, 04:36:36 am
Is there a way to tell what row the blue highlight bar is on? The user hasn't clicked.
Thanks 
Title: Re: Grids - Is there a way?
Post by: dsiders on December 04, 2022, 05:59:31 am
Is there a way to tell what row the blue highlight bar is on? The user hasn't clicked.
Thanks

In Single select mode, the Row property has the active row - even when rowSelect is enabled in Options.

In Multi-Select mode, you'd need to inspect the SelectedRange property - but Row should still have row number for the first range in the selection.

Title: Re: Grids - Is there a way?
Post by: JLWest on December 04, 2022, 08:16:31 am
Thanks
TinyPortal © 2005-2018