DBGrid-mutiple-head

所属分类:界面编程
开发工具:Delphi
文件大小:3KB
下载次数:20
上传日期:2006-04-27 14:27:16
上 传 者cc1124
说明:  轻松实现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.)

文件列表:
KDBGrid.pas (7742, 2005-10-21)
说明.txt (417, 2006-04-27)

近期下载者

相关文件


收藏者