Recent

Author Topic: Highlight whole selected row in TDBGrid  (Read 1015 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Highlight whole selected row in TDBGrid
« on: June 04, 2024, 10:36:30 am »
How to make TDBGrid highlight whole row instead of single cell(see screenshot)?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

rvk

  • Hero Member
  • *****
  • Posts: 6921
Re: Highlight whole selected row in TDBGrid
« Reply #1 on: June 04, 2024, 10:51:55 am »
You can set dgRowSelect in the Options of the TDBGrid.

https://lazarus-ccr.sourceforge.io/docs/lcl/dbgrids/tdbgridoptions.html
Quote
dgRowSelect, Indicates the entire row is highlighted when column(s) are selected.

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Re: Highlight whole selected row in TDBGrid
« Reply #2 on: June 04, 2024, 06:03:14 pm »
That's work. Thank you.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

 

TinyPortal © 2005-2018