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???

example

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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -