当前位置:网站首页>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;
边栏推荐
- [learn FPGA programming from scratch -21]: Advanced - Architecture - VerilogHDL coding specification
- pytorch : srcIndex < srcSelectDimSize
- What is the path field—— Competitive advertising
- [andoid][step pit]cts 11_ Testbootclasspathandsystemserverclasspath at the beginning of R3_ Analysis of nonduplicateclasses fail
- 【软考】软件设计师知识点整理(待更新)
- Implementation and design of JMeter interface test database assertion for CSDN salary increase technology
- Detailed explanation of deep learning parameter adjustment skills
- 详细受众特征详细解释
- Detailed explanation of audience characteristics
- 【官方文件汇总】国科大学位论文撰写规范
猜你喜欢

Database query user mailbox

V-inline-date, similar to Ctrip, flying pig, time selection with price

How to solve the problems when using TV focusable to package APK in uni app

Should the audience choose observation mode or positioning mode?

路径字段是什么? ——竞价广告

如何通过受众群体定位解决实际问题?

Developer contributions amd Xilinx Chinese Forum sharing - wisdom of questioning

开发者来稿|AMD赛灵思中文论坛分享 - 提问的智慧

谷歌加大型文字广告是什么?怎么用?

移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
随机推荐
Summary of various installation methods of Lab View
【MathType】利用MathType输出LaTex样式的公式
Minimum score of one question per day
This of phaser3 add. add. image
Database query user mailbox
3、 Upload fabric photos to SQL server and provide name to display fabric photos
About retrieving ignored files in cornerstone
Server installation jupyterab and remote login configuration
Auto commit attribute of MySQL
How to solve practical problems through audience positioning?
Introduction to ROS runtime
Reinstall opencv and step on the pit.
移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
STM32 3*3矩阵按键(寄存器版本)
指针链表的实现
Stack stack LIFO
A DPU architecture without CPU: Hyperion
Page optimization - Notes
Uuid/guid introduction, generation rules and generation codes
Leetcode question 20