社区
Delphi
帖子详情
为什么delphi下DBGrid的Column能改长度,但是delphi7下DBGrid的Column不能改长度?
zhbruce
2003-09-29 10:36:56
在未编译状态下,我设好了Column的长度,编译时,Column就变得很长。与原来设好的不符。
这种情况只出现在delphi7下,delphi6没有这个问题!
请问如何解决这个问题?
...全文
22
4
打赏
收藏
为什么delphi下DBGrid的Column能改长度,但是delphi7下DBGrid的Column不能改长度?
在未编译状态下,我设好了Column的长度,编译时,Column就变得很长。与原来设好的不符。 这种情况只出现在delphi7下,delphi6没有这个问题! 请问如何解决这个问题?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
漠北刀客
2003-10-03
打赏
举报
回复
dbgrid.datasource.dataset.dispalywidth := NNNNNN;
BarryW
2003-10-03
打赏
举报
回复
dbgrid.Columns[i].width := ***;
佣工7001
2003-09-30
打赏
举报
回复
要在属性中写,columns
cnhgj
2003-09-30
打赏
举报
回复
dbgrid.Columns[i].width := 200;
delphi
db
grid
有条件合并单元格
db
grid
eh 实现有条件合并单元格的例子 内含修
改
的
db
grid
eh 4.2控件
Delphi
DB
Grid
EhColSelect设置
DB
Grid
Eh列显示
Delphi
DB
Grid
EhColSelect设置
DB
Grid
Eh列显示
Delphi
功能丰富的数据库浏览器程序源代码.rar
Delphi
功能丰富的数据库浏览器程序源代码,让
DB
Grid
组件的标题能进行对
DB
Grid
内的数据对行排序,把
DB
Grid
组件内的数据导出到HTML文件,让
DB
Grid
1控件能自动调节字段的宽度(数据网格自动适应宽度),用法:用
DB
Grid
的
DB
Grid
1Draw
Column
Cell事件调用
DB
Grid
RecordSize(
Column
); 然后调用
DB
Grid
AutoSize(
DB
Grid
1)即可,用法:
DB
Grid
ToHtml(
DB
Grid
1,Date,Table);
DB
Grid
1为
DB
Grid
控件,Date为一个TSrings的变量,Table为HTML文件的标题。导出到文件:Date.SaveToFile(FileName); FileName为要导出文件的路径及文件名。。。
最新Ehlib 5.0.13(含完整
Delphi
、C++builder源代码,完全支持
delphi
2010正式版)
Ehlib 是著名的数据库连接控制,版本为5.0.13,
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
2010中运行通过,在本人编制的进销存软件中应用完全正常。 注:
Delphi
2010里面安装不要修
改
bpl文件的输出路径,采用默认值,否则安装难以成功。 Version 5.0的
改
进: + At design-time
grid
can show such components as DataSource, DataSet, DataDriver in its the bottom left part. These components can be selected in object inspector by mouse clicking. It allows to find quickly and select components which is connected to the
grid
. + New mode - RowPanel. In this mode
grid
allows to show out cells of record one under another and change height of every cell separately. +
Grid
can have special panel of detail information for record. It is allowed to put any control from component palette on this panel. At run time, panel is hidden and user can open it by pressing on a '+' sign which is shown at the begining of every row. +
Grid
can scroll data smoothly and by small steps of one pixel size.
Grid
can scroll data smoothly vertically and horizontally. + Hot track.
Grid
can highlight a cell or a row under mouse cursor. +
Grid
can show vertical line in gradient mode between data rows and bottom part of the
grid
. + In mode
Column
.AlwaysShowEditButton
grid
shows EditButtons in shadow mode. It doesn't irritate eyes by big amount of edit buttons in the
grid
. + New property EditButtonsShowOptions is added in the
Grid
of type TEditButtonsShowOptionsEh. TEditButtonsShowOptionsEh = set of (sebShowOnlyForCurCellEh, sebShowOnlyForCurRowEh, sebShowOnlyWhen
Grid
ActiveEh, sebShowOnlyWhenDataEditingEh); When
Column
.AlwaysShowEditButton is True, this property allows to customize, in which cases it is need to show EditButtons. : See detail information
delphi
数据库字段数量方法
delphi
数据库字段数量方法 方法1:sql2000查询语句 ---------------------------------- declare @objid int,@objname char(40) set @objname = 'a'--表名称 select @objid = id from sysobjects where id = object_id(@objname) select '
Column
_name' = name from sys
column
s where id = @objid order by colid 1:sql2000查询语句 ---------------------------------- 方法2:ADOQuery的FieldList的Count属性 ADOQuery1.FieldList.Count:integer ---------------------------------- 方法3:
grid
的
Column
s的Count属性 cx
grid
: cx
Grid
1
DB
BandedTableView2.
Column
Count;
db
grid
:
DB
Grid
1.
Column
s.Count;
Delphi
5,386
社区成员
262,729
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章