Recent

Author Topic: Additional column with checkboxes in DBGrid (again)  (Read 3314 times)

SibBear

  • New Member
  • *
  • Posts: 13
Additional column with checkboxes in DBGrid (again)
« on: June 21, 2013, 10:59:18 am »
I've added an additional column containing checkboxes to DBGrid. Checkboxes are indicating which records should be exported. Now I need to:
- programmatically check/uncheck any checkbox basing on its record number in the grid;
- read a state of any checkbox.
How can I do this?

Thanks,
Michael.
« Last Edit: June 21, 2013, 11:04:29 am by SibBear »


taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Additional column with checkboxes in DBGrid (again)
« Reply #2 on: June 23, 2013, 08:30:41 am »
you seem a bit confused, so let me say this, if you think in terms of subject - view then a dataset is the subject aka the object with the data and a dbgrid is the view aka a graphical representation of the data in the dataset. You do not ask the dbgrid for the values you go directly to the dataset and retrieve the data.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018