checkbox - Delphi - dbGrid Select All -
i put on twwdbgrid checkbox field select record, i'd know if it's possible put checkbox on label of field on grid , when user click on it, it's select fields, knows how that???

thanks in advance
the way can think of doing use timagelist , override docalctitleimage. heres stripped down version have subclassed grid , added support various images on columns.
procedure trgdbgrid.docalctitleimage(sender: tobject; field: tfield; var titleimageattributes: twwtitleimageattributes); begin inherited; { image number } lattr := attribute_of_field; titleimageattributes.imageindex := ord(lattr); end; you can use 2 images - unchecked , check checkbox. , need use ontitleclick event handle it.
Comments
Post a Comment