惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - ypq

cxGrid让指定的某行自动呈选选中的状态 VMware Esxi5.5中嵌套虚拟机的网络设置方法 SQLServer (2005/2008) 日志清理方法 控制cxGrid 主从表的明细只展开一个 关于Delphi cxGrid主从表中从表只能编辑第一条记录的问题 行字段值拼接成字符串 安全释放 TreeView的DATA! delphi中遍历枚举类型的方法 oracle临时表的两种方式 关于PLSQL的存储过程参数 创建variant二维数组 数据库表行转列,列转行终极方案(转) kav 优化设置(转) - ypq - 博客园 [转载]oracle备份与恢复精华资料 ASP.NET学习线路(转) MS-SQLSERVER--错用了LEN()函数 反向解析(PTR)(转): 域名”A记录,MX记录,CNAME记录,TTL值,URL转发”解释 开博了!
关于cxGrid选中行操作关联数据集的一种方法
ypq · 2010-07-18 · via 博客园 - ypq

注:数据集过滤和表格控件过滤不会影响数据集的记录定位。 

  for I := 0 to cxGridDBTableView.DataController.Controller.SelectedRecordCount - 1 do
  begin    //iterate

    //利用CDS的RecNo属性来定位记录(recNO = recordIndex+1) 
    cds.RecNo := cxGridDBTableView.DataController.Controller.SelectedRecords[I].RecordIndex+1;

    // 显示修改前的结果
    ShowMessage('修改前的结果:'+cxGridDBTableView.DataController.Controller.SelectedRecords[I].DisplayTexts[1]);

   //更新关联的数据集
    cds.Edit;
    cds.Fields[1].AsString := 'NewValue';
    cds.Post;
    //显示修改后的结果
    ShowMessage('修改后的结果:'+cxGridDBTableView.DataController.Controller.SelectedRecords[I].DisplayTexts[1]);
//    ShowMessage(VarToStr(cxGridDBTableView.DataController.Controller.SelectedRecords[I].Values[1]));
  end;