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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - 灰色

OSGi中使用Servlet遇到Permission denied的问题 ubuntu上安装netbeans提示找不到jdk的解决办法 Ubuntu的eclipse+CDT开发遇到的问题 - 灰色 - 博客园 备忘:昨天被人问到的3个Linux命令,我只会一个,惭愧啊 vmware中Ubuntu同宿主机Windows之间的共享问题 Oracle创建数据库时提示out of memory错误解决办法 vmware中鼠标乱跑问题的解决 TB级数据检索引擎开发笔记(一) Windows Service中调用Winform程序之log4net问题. 常用SQL语句 要到新公司了 error LNK2001: unresolved external symbol _main解决办法(zz) Ubuntu下使用IronPython不支持os标准库的解决方法 改进的dtree,支持无刷新添加和删除节点 我们公司正在实行的Scrum,效果还不错 如何将数据库恢复到不同名称的新库下 一分钟搞定清晰的网站图标(ico) SQL SERVER 孤立用户问题 - 灰色 Winform中Licenses.licx 总是签出导致影响多人开发的解决方法
利用DevExpress控件包中的GridControl做Master-Detail样式时,Detail表无法定位行的解决办法
灰色 · 2008-10-08 · via 博客园 - 灰色

一直使用DevExpress控件包,现在经过摸索已经基本熟悉了它的使用,但昨天在做一个GridControl的Master-Detail样式(样式如下)时还是遇到了问题。

问题是这样的:我需要在子表中根据鼠标右键点击的具体行,获取当前行的数据。问题看似很简单,以前也写过类似的功能,代码如下:

Code

但是在这里却始终无法获得hi.RowHandle,最后我通过下面的方法使问题得到了解决:

Code

也就是说,这里你不可以再直接使用你设计时的GridView名字对行进行访问,而是要实时获取当前鼠标点击的GridView。欢迎大家讨论!