Click here to Skip to main content
15,891,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello ,everyone !
i create a student table .using cxgrid to show student table .when i add a new
student record ,the new record alway display over
the place where the cursor stay row just now,but all i hope is that ,is should be display at the last row when i add a new record.how to do that ? are there any properties that can implement this
Posted

in after insert event :
bookmark that place and close and open the datatable.
As I remember Refresh doesn't work.
 
Share this answer
 
For do this you can use append method of dataset object instead of insert method. Append method of TdataSet object always add a record to the end of the table but insert method add new record to where the cursor of dataset is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900