Alexandre Storti Posted May 1 Share Posted May 1 How can I get the height of the grid area and the height of each line? The objective is to calculate how many records can be presented per screen. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 2 Share Posted May 2 Hello, I didn't quite understand your question. Can you elaborate? Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted May 2 Author Share Posted May 2 I'm manually paginating the dbgrid, I need to know how many records fit on the screen to adjust the number of records to search in the database. Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted May 5 Author Share Posted May 5 I'm manually paginating the dbgrid, I need to know how many records fit on the screen to adjust the number of records to search in the database Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 6 Share Posted May 6 @Alexandre Storti I still don't understand, sorry. The height of the grid rows may not be the same. Or in your case are they the same? 14 hours ago, Alexandre Storti said: fit on the screen Do you mean grid View? When, say, there is scrolling and all the records do not fit and you want to find out the visible rows? Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted May 6 Author Share Posted May 6 Yes, that's it. I want to know how many lines are possible on the screen to make SQL fetch the same amount per page. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 6 Share Posted May 6 4 hours ago, Alexandre Storti said: Yes, that's it. This post may help you to analyze and use the code (you may also need to modify the code for your need): Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.