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