社区
Delphi
帖子详情
dbgrideh控件的 datagrouping 怎么使用?
horse19840422
2012-12-29 11:08:55
dbgrideh控件的 datagrouping 怎么使用?
我设置了datagrouping 的 active 设置为true
grouppanelvisible也设置为true
DataGrouping.GroupLevels 也设置了指定的列
为什么起不到分组的效果?
我看了demo 但是不知道该按照哪一步一步来搞
...全文
255
3
打赏
收藏
dbgrideh控件的 datagrouping 怎么使用?
dbgrideh控件的 datagrouping 怎么使用? 我设置了datagrouping 的 active 设置为true grouppanelvisible也设置为true DataGrouping.GroupLevels 也设置了指定的列 为什么起不到分组的效果? 我看了demo 但是不知道该按照哪一步一步来搞
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
babydog01
2013-01-07
打赏
举报
回复
dbgrideh在应用中使用表格自动行高及分组功能,都需要用到内存表来实现。不知你用了没有。
babydog01
2013-01-07
打赏
举报
回复
5.0以上的DEMO中就有datagrouping例子,自己研究一下再提问。
大风吹过脸颊
2013-01-06
打赏
举报
回复
这个控件基本没什么人用的,友情帮顶了。
最新
Eh
lib 5.2.84(含完整源代码,支持delphi XE)
Eh
lib 是著名的数据库连接控制,版本为5.2.84,
DB
grid
增强VCL
控件
;支持多表头,多固定列,按表头排序,支持合计列,并支持直接打印。可以和PB的ataWindow媲美。 本版本含完整源代码,支持以下 IDE: Delphi 5,6,7,2005 C++Builder 5,6 BDS 2006 (Delphi 2006, C++Builder 2006) Delphi 2007 RAD Studio 2009 (Delphi 2009, C++Builder 2009) Embarcadero RAD Studio 2010 (Delphi 2010, C++Builder 2010) 本人已在Delphi XE中运行通过,在本人编制的进销存软件中应用完全正常。 注:Delphi 2010、XE里面安装不要修改bpl文件的输出路径,采用默认值,否则安装难以成功。 Version 5.2 + Added feature to group
data
in the
DB
Grid
Eh
. It is allowed to make
grouping
at run-time and design-time.
Grouping
works only when the
grid
is connected to TMemTable
Eh
data
set. Use next subproperties of
Grid
.
Data
Grouping
property to adjust
grouping
Active: Boolean - Set this propery true to active
grouping
. DefaultStateExpanded: Boolean - defines initial expapnding/collapsing state of new created elements of the
grouping
tree. GroupLevels: T
Grid
Data
GroupLevels
Eh
- Collection of group levels. Use this property to create template of the
grouping
. GroupPanelVisible: Boolean - Set this property to True to show special panel at the top part of the
grid
. Then the panel is thisible it is allowed to form group levels by mouse. Drag title of the requaried column to the group panel and drop it onto panel. Font: TFont - Controls the attributes of the default font of group records in the
grid
. Color: Tcolor - Default background color of the group records. See demonstration project of
grouping
in Demos\
Data
Grouping
directory. Version 5.1 * The type of RowPanel property was changed. Instead of Boolean type, now it is an object property with subproperies: Active: Boolean - Defines if it is possible to place cells under each over and if every propetry can have personal hight. + NavKeysNavigationType: T
Grid
RowPanelNavKeysNavigationType
Eh
- defines the order of navigation over cells in the
grid
when keys Up, Down, Left, Right are pressed. rpntRowT
delphi
DB
Grid
eh
部分常用功能
使用
说明
1、表格数据颜色设置方法: a、单条颜色设置:在原来基础上面将最后一句代码sui
DB
Grid
eh
1.DefaultDrawColumnCell(Rect,
Data
Col, Column, State); 修改为 T
DB
Grid
Eh
(Sender).DefaultDrawColumnCell(Rect,
Data
Col, Column, State); b、斑马线设置:在
db
girde
Delphi表格
控件
DB
Grid
Eh
全属性设置详解 最全的属性设置说明
很是费了的功夫,把
DB
Grid
Eh
全部属性设置弄出来了 白波九道 2013.9.10 可惜做好的表格传不下来,只好粘成纯文本了 属性 子选项 值 说明 Allowedoperations [alopInsert
Eh
,alopUpdate
Eh
,alopDelete
Eh
,alopAppend
Eh
] 允许操作类型:插入、更新、删除、追加 Allowedselections [gstR
DB
Grid
Eh
控制单元格显示以及存储过程 触发器和视图以及事务的
使用
做Delphi数据库开发也已经几年了,但是对ADO的一些高级应用和
DB
Grid
Eh
的
使用
一直不太熟练,趁着这周刚好双休,自己做了一个Demo,算是一个小的总结吧,也方便以后应用可以随时查阅。
DB
Grid
Eh
是
Eh
lib
控件
包中的一个,比起Delphi自带的
DB
Grid
好用不少,一般也是数据库显示常
使用
的表格
控件
之一。要控制
DB
Grid
Eh
的单元格显示主要
使用
OnGetCellParams或者OnD
DB
Grid
Eh
全部属性设置详解
属性子选项值说明 Allowedoperations[alopInsert
Eh
,alopUpdate
Eh
,alopDelete
Eh
,alopAppend
Eh
]允许操作类型:插入、更新、删除、追加 Allowedselections[gstRecor
dB
ookmarks,gstRectangle,gstColumns,gstAll]gstRecor
dB
ookmarks:书签选中行 ...
Delphi
5,388
社区成员
262,730
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章