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

推荐订阅源

IT之家
IT之家
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
爱范儿
爱范儿
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Y
Y Combinator Blog
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
M
MIT News - Artificial intelligence
博客园 - Franky
V
Visual Studio Blog
I
InfoQ
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
博客园 - 司徒正美
L
LangChain Blog

博客园 - 振河

SQL Server 2005 Reporting Services动态设置数据源 在windows 2008 server 中Password must meet complexity requirements VS2005 中控件的 GenerateMember 属性 WCF 安全之自定义的用户名/密码身份验证 Visual Studio 2008 开发WPF应用程序系列文章——window class 之间的继承 Visual Studio 2005 开发WPF应用程序系列文章——什么是WPF 配置 SQL Server 2005 远程调试存储过程 (转载) C# Office编程——Word 错误类型:“系统找不到 Microsoft.Office.Interop.Word" Reporting Service 在文本框中换行的问题 数据库范式设计 JavaScript 用DIV模拟弹出窗口并跟随窗体滚动 SQL Server 2000 占内存居高不下可能的原因及其解决方法 轻松移除VS2005解决方案中的VSS绑定信息 Reporting Services 运行时设置报表的Page Header的大小 朋友,5.1节日快乐 SQL Server 2005 Reporting Services 使用C#类库中的函数方法 SQL Server 2005 Reporting Services 报表中随意格式化日期的方法 SQL Server 2005 Reporting Services的一个bug及其解决方法 SQL Server 2005 Reporting Services 在排版上存在的一个问题
使用ComponentOne 中 C1TrueDBGrid 实现Master-Detail Grid
振河 · 2007-07-27 · via 博客园 - 振河

ComponentOne Studio for .NET2.0 是一套不错第三方组件,好多在.NET下无法实现或者难以实现的在ComponentOne中可以很容易的实现。下面简单介绍一下使用C1TrueDBGrid实现Master-Detail Grid的方法。

1. 先在Form上放一个C1TrueDBGrid Control 设置其Name 为gridMaster,然后再放一个C1TrueDBGrid,设置其Name为 gridDetail
2. 设置gridMaster的属性childgrid为gridDetail。
3. 在某事件中SetBandDataSource 给gridMaster
4. 在gridMaster的Expand 事件中SetBandDataSource 给gridDetail
 
到此为止你的Master-Detail Grid 顺利的完成了,简单不!

还有好多好玩的东东呢,ComponentOne就是好用。有需要的朋友快去下载一个吧。