Use of cbsButtonColumn doesn't select row? lazarus / 31-LCL ---------------------------------------------------------------------- flaza · 2014-09-28 15:06 Hi. I have a TStringGrid with, among others, the option goRowSelect. One of the columns has the buttonstyle cbsButtonColumn. When I click random in the grid, the complete row is selected. But when I click in de button column this doesn't appear so. I've put the line TStringGrid(Sender).Row := aRow to the routine OnButtonClick, but the row is still not selected. Does anyone have a solution for this? ---------------------------------------------------------------------- derek.john.evans · 2014-09-28 18:11 Try this in OnMouseDown: 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 TFormMain.StringGridMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin  with Sender as TStringGrid do  begin    Row := MouseToCell(Point(X, Y)).Y;  end;end;   This also makes clicking on fixed columns select the row. ---------------------------------------------------------------------- flaza · 2014-09-28 18:25 It works. Thanks.