文件名称:DBGrid-mutiple-head
介绍说明--下载内容来自于网络,使用问题请自行百度
轻松实现DBGrid多表头加强版
网上流传的TADBgrid控件可以轻松实现DBGrid多表头,不过它的设计较简单,
相邻字段,层数必须相同才可以合并,这样效果就大打折扣了,我本来给他
90分的,就这一点就扣了89分。我下功夫改了一下,即使层数也可以合并,
还做到最底层的高度尽量小,效果与DBGridEh几乎一样,因为比较简单,没有
解决折行,这需要在内存做一棵树来计算高度,复杂些,可参考DBGridEH,
下面就是实现的代码,如果发现有错,请指出改正。-easily DBGrid strengthen multi-table first version TADBgrid spread of the Internet can easily control it now DBGrid multi-table heads, but its design is relatively simple, adjacent fields, the same rise can be merged, this effect will be greatly reduced, I would have to give him 90 points, on this point deduction of 89 points. I make efforts to reform it, and even floors also can be combined, but also achieve a high degree of the bottom as possible, effects DBGridEh almost the same as it is more simple, no address lines, This needs to do in memory to calculate a tree height, more complex, reference DBGridEH. Below is the realization of the code, if found to be wrong, please correct that.
网上流传的TADBgrid控件可以轻松实现DBGrid多表头,不过它的设计较简单,
相邻字段,层数必须相同才可以合并,这样效果就大打折扣了,我本来给他
90分的,就这一点就扣了89分。我下功夫改了一下,即使层数也可以合并,
还做到最底层的高度尽量小,效果与DBGridEh几乎一样,因为比较简单,没有
解决折行,这需要在内存做一棵树来计算高度,复杂些,可参考DBGridEH,
下面就是实现的代码,如果发现有错,请指出改正。-easily DBGrid strengthen multi-table first version TADBgrid spread of the Internet can easily control it now DBGrid multi-table heads, but its design is relatively simple, adjacent fields, the same rise can be merged, this effect will be greatly reduced, I would have to give him 90 points, on this point deduction of 89 points. I make efforts to reform it, and even floors also can be combined, but also achieve a high degree of the bottom as possible, effects DBGridEh almost the same as it is more simple, no address lines, This needs to do in memory to calculate a tree height, more complex, reference DBGridEH. Below is the realization of the code, if found to be wrong, please correct that.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
KDBGrid.pas
说明.txt
说明.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.