当前位置:网站首页>CXGRID keeps the original display position after refreshing the data
CXGRID keeps the original display position after refreshing the data
2022-06-13 01:43:00 【Guoguo】
cxgrid After refreshing the data, keep the original display position unchanged
var i,ti:integer;
begin
i:=cxGrid1DBTableView1.Controller.FocusedRowIndex; // Record the focus line number
ti:=cxGrid1DBTableView1.Controller.TopRowIndex; // Record top line number
Data sets .Active:=False;
Data sets .Active:=True;
try
cxGrid1DBTableView1.Controller.FocusedRowIndex:=i; // The focus line is positioned to the record value
cxGrid1DBTableView1.Controller.TopRowIndex:=ti; // Top line Navigate to the record value
except
end;
end;
DataController.RefreshExternalData; // Refresh the dataset
cxGridDBDataDefinitions;
TcxGridDBDataController(DataController).DataSet.Refresh;
边栏推荐
- Implementation and design of JMeter interface test database assertion for CSDN salary increase technology
- 一种不带CPU的DPU架构:Hyperion
- Topic creation and running example of ROS
- Server installation jupyterab and remote login configuration
- 3、 Upload fabric photos to SQL server and provide name to display fabric photos
- [MySQL password management] - [administrator password known, unknown (forgotten), cracked]
- Wsl2 + vcxsrv + opengl3.3 configuration
- Machine learning basic SVM (support vector machine)
- Detailed understanding of white noise
- D template instance does not match declaration
猜你喜欢
Temporary objects and compilation optimization
V-inline-date, similar to Ctrip, flying pig, time selection with price
Server installation jupyterab and remote login configuration
Machine learning basic SVM (support vector machine)
C language implementation of the classic eight queens problem
水管工遊戲
关于tkinter.Canvas 不显示图片的问题
Use koa to mock data and set cross domain issues
Minimum score of one question per day
Developer contributions amd Xilinx Chinese Forum sharing - wisdom of questioning
随机推荐
September 3, 2021 visual notes
MySQL performance optimization
Detailed explanation of deep learning parameter adjustment skills
[WSL2]WSL2迁移虚拟磁盘文件ext4.vhdx
Startup, connection and stop of MySQL service
Numpy multidimensional array transpose transpose
Use koa to mock data and set cross domain issues
Crypto JS reports uglifyjs error
Machine learning basic SVM (support vector machine)
项目实训(十七)---个人工作总结
移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
dfs与bfs解决宝岛探险
如何利用您的自有数据来实现营销目标?
服务器安装jupyterlab以及远程登录配置
Traversal of binary tree - first order traversal, middle order traversal, and second order traversal
他山之石:a16z 的 Web3 投资版图
About tkinter Canvas does not display pictures
Torch. Distributions. Normal
[wsl2]wsl2 migrate virtual disk file ext4 vhdx
DFS and BFS notes (II): depth first search (implemented in C language)