Recent

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

LemonParty

  • Jr. Member
  • **
  • Posts: 82
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)?

rvk

  • Hero Member
  • *****
  • Posts: 6312
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

  • Jr. Member
  • **
  • Posts: 82
Re: Highlight whole selected row in TDBGrid
« Reply #2 on: June 04, 2024, 06:03:14 pm »
That's work. Thank you.

 

TinyPortal © 2005-2018