Recent

Author Topic: Grids - Is there a way? (Solved)  (Read 291 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1259
Grids - Is there a way? (Solved)
« 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 
« Last Edit: December 04, 2022, 08:17:04 am by JLWest »
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

dsiders

  • Hero Member
  • *****
  • Posts: 748
Re: Grids - Is there a way?
« Reply #1 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.

Preview Lazarus 2.3.0 documentation at: https://dsiders.gitlab.io/lazdocsnext

JLWest

  • Hero Member
  • *****
  • Posts: 1259
Re: Grids - Is there a way?
« Reply #2 on: December 04, 2022, 08:16:31 am »
Thanks
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

 

TinyPortal © 2005-2018