Paint alternate rows in dbgrid lazarus / 16-Databases ---------------------------------------------------------------------- Ericktux · 2016-04-29 17:46 Hello, I can paint alternate rows in dbgrid, as the attached image. ---------------------------------------------------------------------- wp · 2016-04-29 18:28 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 DBGrid1.AlternateColor := clYellow; ---------------------------------------------------------------------- Ericktux · 2016-04-29 18:47 Thansk this works!!  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 TForm2.FormCreate(Sender: TObject);begin  DBGrid1.AlternateColor := clYellow;// ... more codesend; ---------------------------------------------------------------------- Ericktux · 2016-04-29 19:32 also it works  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   DBGrid1.AlternateColor := $00E8E8E8;   // color gray