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

推荐订阅源

雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
IT之家
IT之家
D
DataBreaches.Net
Y
Y Combinator Blog
B
Blog RSS Feed
F
Fortinet All Blogs
GbyAI
GbyAI
V
Visual Studio Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
美团技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog

博客园 - 遗忘海岸

简协运动模拟 电磁场中的运动轨迹模拟 圆周运动模拟 带阻力的平抛运动 C# 队列的一些并发模拟 C# Tcp Server端实现,使用TcpListener 深信服务超融合管理Api调用 GDI+画工作流图的一些总结 绘制贝塞而曲线 GDI+画直线带箭头 devexpress schedulerControl Gantt View 使用 逻辑回归损失函数求导 matplotlim柱状图 匀加速运动模拟python,(matplotlib) C# 实现排列 python 类鸟群Boids C#动态编译 正太分布数据排序后分段数据的方差与标准差 Android 的一个通用列表单选AlertDialog封装
devexpress gridview master,detail视图 focuseRowHandle 同...
遗忘海岸 · 2024-08-23 · via 博客园 - 遗忘海岸

gridview1是主视图,gridview2是其子视图

gridview1中的多行就对应了多个gridview2实例,那么通时展开多个gridview1中的多个行,

并且在这些展开的行中点不同gridview2的行时,gridview1的焦点行是不会自动切换的的

需要做如下处理(这里还包括了了gridview2中的checkboxedit)

            gridView2.GotFocus += (s, e) =>
            {
                var gv = s as GridView;
                if (gv.FocusedRowHandle >= 0)
                {
                    //SourceRowHandle指向对应的MasterView的RowHandle
                    //NND,为什么不叫MasterRowHandle呢???
                    gridView1.FocusedRowHandle = gv.SourceRowHandle;
                }
            };