本站首页    管理页面    写新日志    退出


«September 2025»
123456
78910111213
14151617181920
21222324252627
282930


公告
================

注会练习软件
http://www.cpasoft.com.cn
我的注会软件官网

http://blog.163.com/abc7105@126/

 

 


哈哈,热爱快“过气”的DELPHI


我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:注册会计师(注会)练习软件
日志总数:398
评论数量:116
留言数量:27
访问次数:3269563
建立时间:2005年6月6日




[borland eco 技术]令人称奇的devexpress的产品gridcontrol
软件技术

吕向阳 发表于 2008/2/28 21:31:17

为做用ECO作数据源的嵌套表格,想了许多办法达不到好的效果,今天在GOOGLE上几行字的一个回复,让我如获至宝,随即问题迎刃而解 "Oleg Zhukov" wrote: > For this purpose I use events for loading details. For example see > GridView.MasterRowGetChildList event. There is good help written > on this topic. I've just noticed that it's much easier to do this using nestings in ECO handles. (Earlier I thought that nestings are suitable only for WinForms DataGrid, but it seems to be an ECO-specific implementation of general .NET master-detail architecture) Just create a column in a handle and set "nested = true". Then in "nestings" property for the handle you may adjust fields for this nesting. In DevExpress GridControl create new level (pattern view) and set this level's name to the name of the nesting. Done! :) Regards, -- Oleg Zhukov 我假定两个库,一个person库,一个parent库,一对多的关系 1.建一个expressionhandle,设其expression='person.allinstances', 2在这个expressionhandle中,进入columns新建一列,取名parents,expression设为"self.parents",nestingsname设为'mx'(随便取的),nested设为true. 3.仍在这个expressionhandle中,进入nesting,加入一行,取名为同上的"mx",adddefaultnesting(增加默认嵌套)设为false和adddefaultproperties(增加默认属性)设为true,其它可不设. 4.在gridcontrol中,在原先已默认已建一级gridview的基础上新建一个level,在这个level上再建一个gridcontrol,假定是gridview2,将它的名字改为我先取的nesting(嵌套)名"mx",这时运行表单,看到gridcontrol就是自己心中期望的那个嵌套效果.  


阅读全文(3897) | 回复(1) | 编辑 | 精华
 


回复:令人称奇的devexpress的产品gridcontrol
软件技术

gattaca(游客)发表评论于2008/3/10 11:25:35

不用第三方元件也能達到同樣效果喔!詳見其中的[Master-Detail GridView Part 2]http://www.microsoft.com/taiwan/msdn/columns/huang_jhong_cheng/ASP_NET_GridView.htm


个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.223 second(s), page refreshed 144777096 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号