The first computer room charging system refers to repeated query results after clicking the query button

When you are writing the computer room, you don’t know if you have encountered this situation. It should appear once when you click the query, but if you click repeatedly, it will appear repeatedly, as shown below:

Someone may have said again, it is enough to just empty the table directly at the beginning of the program, and the result is like this

If you only add a clear statement at the beginning of the program, then it will only clear the content inside, and the content will only come out from the previous record, so that the record is gone, but there will be a lot of spaces. Look like this The result is not beautiful, so it is correct to add the statement to clear the table at the beginning of the program. This is only half the answer, and the most important thing is to fix a row directly when loading the header. Is to add the statement: MSHFlexGrid1.rows=1

Then when the program is running, it will be cleared first, and then fixed a row when loading the header, so that the blank row will not appear

 

Guess you like

Origin blog.csdn.net/weixin_45309155/article/details/106519350
Recommended