社区
Delphi
帖子详情
如何固定DBGridEh的列?
008009
2003-06-10 09:07:18
如何固定DBGridEh的列?就是固定第一列,在横向拖动时,第一列始终不变动。
...全文
17
2
打赏
收藏
如何固定DBGridEh的列?
如何固定DBGridEh的列?就是固定第一列,在横向拖动时,第一列始终不变动。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
blueshu
2003-06-21
打赏
举报
回复
dbgrideh.frozencols:=2
wolfcrazy
2003-06-20
打赏
举报
回复
TStringGrid(dbgridEH).fixedCol:= 2;
DB
grid
eh
DB
grid
增强:支持多表头,多
固定
列
,
按表头排序,支持合计
列
,并支持直接打印.
可以和PB的DataWindow媲美,吐血推荐.
Eh
Lib v3.4 (支持D8)
DB
grid
增强:支持多表头,多
固定
列
,按表头排序,支持合计
列
,并支持直接打印.可以和PB的DataWindow媲美,支持D8,吐血推荐.
Eh
lib3.4更新: + D8支持(VCL.NET). + T
DB
Grid
Eh
增加若干属性及事件. + TCustom
DB
Edit
Eh
增加若干属性及事件.
最新
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
dataset. Use next subproperties of
Grid
.DataGrouping 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
DataGroupLevels
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\DataGrouping 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
db
grid
eh
前3
列
需要
固定
设置方法
需求:
db
grid
eh
前3
列
需要
固定
显示,不随着滚动条变动位置 解决方法:将
db
grid
eh
的frozencols设置为3即可; 左侧
固定
列
设置: 右侧
固定
列
设置: 转载于:https://www.cnblogs.com/ddxxxb/p/7083658.html...
Delphi
DB
Grid
Eh
固定
锁定
列
的写法
例如 function GetColFroZenCount:Integer; //计算锁定
列
try
DB
G_Master.FrozenCols := GetColFroZenCount; except
DB
G_Master.FrozenCols :=0 end; function TFmWDDPH.GetColFroZenCount: Integer;
Delphi
5,391
社区成员
262,736
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章