DBGrid Question lazarus / 31-LCL ---------------------------------------------------------------------- greertr · 2017-01-03 10:53 Using rowcount for a dbgrid gives me an error - I couldnt find an alternative on the dbgrids ref page... 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 Label1.caption := 'Number of Flights:  ' + inttostr(dbgrid1.rowcount-1); There's gotta be an alternative to discover how many rows are in a dbgrid? ---------------------------------------------------------------------- greertr · 2017-01-03 12:54 Solved this by changing dbgrid1 to ZQuery1.