Forum > LCL

Grids - ButtonStyle and OnDrawCell

(1/1)

faber:
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:
That's right, cbsCheckboxColumn editor is custom draw by the grid, what you can do is something like:


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

--- End code ---

faber:
great - thanks!

Navigation

[0] Message Index

Go to full version