Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - address memory
Search - address memory - List
轻松实现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.
Date : 2008-10-13 Size : 2.95kb User : cy

轻松实现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.
Date : 2026-01-11 Size : 3kb User : cy
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.