Recent

Author Topic: checkbox inside StringGrid [solved]  (Read 9083 times)

Robson

  • New Member
  • *
  • Posts: 47
checkbox inside StringGrid [solved]
« on: January 15, 2011, 12:21:09 pm »
Hello all

How to get value of checkbox inside StringGrid and how to mark the checkbox of a particular row x column?

an observation: Captured the value (ValueChecked = True and ValueUnchecked = False) can be used directly in a TCheckBox?


Thanks
« Last Edit: January 15, 2011, 03:39:02 pm by Robson »

Robson

  • New Member
  • *
  • Posts: 47
Re: checkbox inside StringGrid
« Reply #1 on: January 15, 2011, 01:44:25 pm »
CheckBox1.Checked := bool(sgCampos.Cells[3,1] = 'True');

u_pri.pas(517,61) Fatal: Internal error 2010081601

How to get value of checkbox inside StringGrid and how to mark the checkbox of a particular row x column by code?

Robson

  • New Member
  • *
  • Posts: 47
Re: checkbox inside StringGrid
« Reply #2 on: January 15, 2011, 03:16:17 pm »
Removing the boolean is correct

CheckBox1.Checked := (StringGrid1.Cells[3,1] = 'True');

Thanks
« Last Edit: January 15, 2011, 03:17:57 pm by Robson »

 

TinyPortal © 2005-2018