[EXAMPLE Bookmark as checkbox DBGrid] lazarus / 16-Databases ---------------------------------------------------------------------- What I can do · 2024-11-03 13:06 OS:Windows 10@ 64 Lazarus 3.4 Project have bookmarks as checkboxes displayed as a column in a dbGrid. This has not been resolved: [Title change] How to set a checkbox in DBGrid linked to a BookmarkList I weird things is I use Lazarus form to find it before and it was very simple but I crashed my code and now rebuilding I'm not able to find it. I have all the DBGrid events in place and ready to respond but I don't have the checkboxes in the dbgrid. I think the boxes are some sort of temp field made on the fly but I have not reproduced or found where to implement that. I know I'm missing something simple. ---------------------------------------------------------------------- Sieben · 2024-11-03 14:31 Do you mean this one? ---------------------------------------------------------------------- What I can do · 2024-11-03 15:20 Thanks for the Reply Seiben, but Trust me, I am very good at removing and reinstalling Lazarus the code example came from this Lazarus Form Here is what I am looking for; DBGrid has two DB columns showing the fields as string I am wanting to add a third field/or temp field/or column that is of boolean and furthermore that field is of info data form the Bookmark for each record Need a simply click of the bookmark field to toggle the bookmark of that record ---------------------------------------------------------------------- Sieben · 2024-11-03 15:26 Please follow the link I gave you, it's all set out there. Has nothing to do with removing or reinstalling Lazarus ---------------------------------------------------------------------- What I can do · 2024-11-03 15:43 Thank you Sieben but still which one? Which one they all show some form of install https://wiki.freepascal.org/Install_on_Ubuntu Videos for Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / https://ubuntuhandbook.org/index.php/2021/11/install-lazarus-ide- ubuntu/ https://wiki.freepascal.org/Install_on_Ubuntu_from_.deb_files https://wiki.freepascal.org/Installing_Lazarus_on_Linux https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064% 20bits/Lazarus%202.2.2/ https://www.lazarus-ide.org/index.php?page=downloads https://forum.lazarus.freepascal.org/index.php?topic=66420.0 https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64 %20DEB/Lazarus%202.2.2/ ---------------------------------------------------------------------- What I can do · 2024-11-03 15:49 well DUH! the "this one?" comes up normal font on my monitor my bad  I am sorry for that. ---------------------------------------------------------------------- What I can do · 2024-11-03 18:53 UPDATE info { checkbox for bookmark} 1) Select the DBGrid [Right-Click] to popup Chose "EditColumns..." 2) Popup window (Editing EBGrid.Columns[0]...) below title bar find  and click the [Add] button 3) Notice in (Fetch Labels) listbox a new line appears as "0 -Tile" select that line 4)  IDE (Properties [(filter)                       ]) window notice the  "Properties" tab is selected 5) Just me but set      a. ButtonStyle | cbsCheckboxColumn      b. Title .Alignment   | taCenter                ..Caption      | Pick               ...Font . Style | [fsBold]     c.Width | 40   {NOTE: all other dbcolmuns will load as normal with the ".Open" command                or free to set your own configuration} 6)  Close popup window (Editing EBGrid.Columns[0]...)  and as DBGrid is selected 7) Click the "Events" tab set these events           a. OnCellClick  |  DBGrid1CellClick           b. OnUserCheckboxState  |  DBGrid2UserCheckboxState 8 ) IDE (Source Editor) window  code these events  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.DBGrid1CellClick(Column: TColumn); begin   if Column.Index=0 then      RecList.CurrentRowSelected := not RecList.CurrentRowSelected; end;  procedure TForm1.DBGrid1UserCheckboxState(sender: TObject; column: TColumn; var AState: TCheckboxState);begin  if RecList.CurrentRowSelected then    AState := cbChecked  else    AState := cbUnchecked;end; procedure TForm1.FormCreate(Sender: TObject);begin  RecList := TBookmarkList.Create(DbGrid1);end; procedure TForm1.FormDestroy(Sender: TObject);begin  RecList.Free;end; suggest reading through linked literature Special thanks goes to member [Sieben]