[Solved] Checkbox in DBgrid lazarus / 21-General ---------------------------------------------------------------------- devmasterba · 2022-06-14 12:01 Is it possible to insert a checkbox in the dbgrid to select the line according to the attached image? ---------------------------------------------------------------------- Handoko · 2022-06-14 16:38 Hello devmasterba, Welcome to the forum. I quickly checked TDBGrid, I couldn't find OnDrawCell event. That means you cannot provide your own items for the cells in TDBGrid. But what you want to do is still possible if you use TStringGrid and manually write the code to load, display and save modified line to the database. For some reasons I couldn't use TDBGrid, so I used TStringGrid to show data from a Firebird database just like TDBGrid, it worked. I haven't tried but with some extra efforts it should be able to work like the image you provided. ---------------------------------------------------------------------- Soner · 2022-06-14 18:24 I modified default dbgrid, now indicator column behaves like checkbox- column, when you add multiselect option. You must copy both files in the folder lazarus/lcl/ . ---------------------------------------------------------------------- devmasterba · 2022-06-16 13:52 Hi Guys, thanks for the replies. I found this code on a Brazilian forum (ACBr)  (https://www.projetoacbr.com.br/forum/topic/29387-substituto-para- grid-da- devexpress/),(https://bitbucket.org/marcosweimer/pkgbr/src/master/) It was made for delphi, I created a Lazarus package. Create the popupmenu and find it works well, the filter and coloring the line and the cell doesn't work and neither does the zebrar (one line of each color) I would like with the help of friends to extend this class. Resources: 1 - Zebra with color selection; 2 - Filter (F3 will filter by current column) 3 - Find (F4 will find by current column) 4 - Export to CSV attach the lazarus package ---------------------------------------------------------------------- devmasterba · 2022-06-16 15:00 Quote from: devmasterba on June 14, 2022, 02:01:55 pmIs it possible to insert a checkbox in the dbgrid to select the line according to the attached image? yes it is possible, the link below has the solution: http://wiki.lazar us.freepascal.org/Grids_Reference_Page#Selecting_Records_in_a_DBGrid_u sing_checkboxes