Which event should i use on DBGrid in order to catch the click on leftmost cell lazarus / 16-Databases ---------------------------------------------------------------------- Lazikas o Pontios · 2023-02-06 13:24 Hello all, while i read the Tdbgrid manual and searched in forums,  i cannot figure out which event i must use in order to catch the click on the leftmost cell (the grayed one, which selects rows) in a dbgrid. I know that columns can be catch with .OnTitleClick but what about rows? Anybody can help? L. ---------------------------------------------------------------------- paweld · 2023-02-06 13:48 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.DBGrid1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);var  aCol, aRow;begin  DBGrid1.MouseToCell(X, Y, aCol, aRow);  if aCol = 0 then    ShowMessage(Format('Clicked indicator column on row: %d', [aCol, aRow]));end; ---------------------------------------------------------------------- Lazikas o Pontios · 2023-02-06 13:54 How can i mark this as solved ? Paweld you are my hero ! L. ---------------------------------------------------------------------- Joanna · 2023-02-06 14:03 You can change the title to include [solved] I’ve had difficulty with that first column In dbgrid  causing crashes awhile Ago when I clicked it. Hopefully that was fixed. I remember having to do special handling for that column checking if it was zero etc. ---------------------------------------------------------------------- Lazikas o Pontios · 2023-02-17 10:11 I am not allowed to change the subject, don't know why  I just changed the message icon ... ---------------------------------------------------------------------- totya · 2023-02-17 10:25 Quote from: Lazikas o Pontios on February 17, 2023, 11:11:48 amI am not allowed to change the subject, don't know why  I just changed the message icon ... In the first message click to modify, and change the subject, then save. ---------------------------------------------------------------------- Lazikas o Pontios · 2023-02-23 10:17 I did that, this is how i changed the icon to thumbnail. But, unfortunately, i cannot change the subject. Subject box behaves like it is readOnly. Tried with Firefox and Chrome, no luck... Anyway...