社区
C++ Builder
帖子详情
(在线等)关于StringGrid1中EditorMode属性问题!
iloverainbow
2003-10-19 09:43:24
EditorMode属性是控制整个StringGrid的属性吧,也就是说当EditorMode=false时,整个StringGrid都不能进行编辑,我现在只使其中的某几列不能编辑,其它可能编辑,不知能不能实现??
谢谢指点?
...全文
67
3
打赏
收藏
(在线等)关于StringGrid1中EditorMode属性问题!
EditorMode属性是控制整个StringGrid的属性吧,也就是说当EditorMode=false时,整个StringGrid都不能进行编辑,我现在只使其中的某几列不能编辑,其它可能编辑,不知能不能实现?? 谢谢指点?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qaqa2003
2003-11-09
打赏
举报
回复
OnDrawCell事件中加入:
void __fastcall TForm1::StringGrid1SelectCell(TObject *Sender, int ACol,
int ARow, bool &CanSelect)
{
if(ACol==2||ACol==5||ACol==8)
StringGrid1->Options<<goEditing;///////可以编辑的列
else
StringGrid1->Options>>goEditing;///////不能编辑的列
}
qaqa2003
2003-10-19
打赏
举报
回复
好象可以用goediting属性的!
iloverainbow
2003-10-19
打赏
举报
回复
难道很少有人这样用吗?
String
Grid
属性
功能:以网格形式显示或编辑多个字符串。 主要
属性
: Cells:获取每个单元格的值,用法Cells[ARow][ACol]; Cols:T
String
类型,返回某一列的所有字符串,用法Cols[index]; Objects:列出一个单元格对应的对象,用法Objects[ARow][ACol]; Rows:T
String
类型,返回某一行的所有
String
Grid
控件
String
Grid
控件 组件名称:
String
Grid
●固定行及固定列:
String
Grid
.FixedCols:=固定行之数;
String
Grid
.FixedRows:=固定列之数;
String
Grid
. FixedColor:=固定行列之颜色;
String
Grid
.Color:=资料区之颜色; ●资料行列之宽高度:
String
Grid
.Defa...
String
Grid
使用教程(Delphi)
String
Grid
行列的增加和删除type TExCell = class(T
String
Grid
)public procedure DeleteRow(ARow: Longint); procedure DeleteColumn(ACol: Longint); procedure InsertRow(ARow: LongInt); procedure InsertColumn
String
Grid
使用全书
String
Grid
行列的增加和删除type TExCell = class(T
String
Grid
)public procedure DeleteRow(ARow: Longint); procedure DeleteColumn(ACol: Longint); procedure InsertRow(ARow: LongInt); procedure InsertColumn(ACo
DB
Grid
各
属性
的设置
在 Delphi 语言的数据库编程
中
,DB
Grid
是显示数据的主要手段之一。但是 DB
Grid
缺省的外观未免显得单调和缺乏创意。其实,我们完全可以在我们的程序
中
通过编程来达到美化DB
Grid
外观的目的。通过编程,我们可以改变 DB
Grid
的表头、网格、网格线的前景色和背景色,以及相关的字体的大小和风格。 以下的示例程序演示了对 DB
Grid
各
属性
的设置,使 Delphi 显示的表格就像网...
C++ Builder
13,825
社区成员
102,679
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章