Recent

Author Topic: Grids - ButtonStyle and OnDrawCell  (Read 5070 times)

faber

  • Guest
Grids - ButtonStyle and OnDrawCell
« on: August 26, 2010, 10:12:04 pm »
Can I use cbsCheckboxColumn in ButtonStyle only when I don't have assigned OnDrawCell ?
I've problem with setting cbsCheckboxColumn in columns. I only see checkbox if I disable my OnDrawCell procedure.

jesusr

  • Sr. Member
  • ****
  • Posts: 484
Re: Grids - ButtonStyle and OnDrawCell
« Reply #1 on: August 26, 2010, 11:11:30 pm »
That's right, cbsCheckboxColumn editor is custom draw by the grid, what you can do is something like:

Code: [Select]
  if ACol=3 then  // put here the condition for your checkbox or button columns
    StringGrid1.DefaultDrawCell(ACol,ARow, ARect, AState)
  else
    ...

faber

  • Guest
Re: Grids - ButtonStyle and OnDrawCell
« Reply #2 on: August 27, 2010, 08:20:08 am »
great - thanks!

 

TinyPortal © 2005-2018