DEV控件:gridControl常用属性设置
来源:互联网 发布:网络推广竞价包年 编辑:程序博客网 时间:2024/05/21 08:03
1.隐藏最上面的GroupPanel
gridView1.OptionsView.ShowGroupPanel=false;
2.得到当前选定记录某字段的值
sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString();
3.数据只读
gridView1.OptionsBehavior.Editable=false;
4.不显示MasterDetailView
gridView1.OptionsDetail.EnableMasterViewMode=false;
5.修改最上面的GroupPanel内容
gridView1.GroupPanelText="柳生飘絮";
6.数据绑定:
FieldName --数据库的字段名称
7.读写拷贝权限设置
ColumnView.Editable
This property returns a value of the ColumnViewOptionsBehavior.Editable option
不可写
ColumnViewOptionsBehavior.Editable
Gets or sets whether end users are allowed to invoke cell editors
可读可写
OptionsColumn.AllowEdit
Gets or sets whether end users are allowed to invoke editors for the column's cells.
可读可写
只有ColumnViewOptionsBehavior.Editable = True设置OptionsColumn.AllowEdit才有意义
OptionsColumn.ReadOnly
Gets or sets whether end-users are prevented from editing the column's cell values.
可读可写
If the ReadOnly property is set to true, the cellvalues of columns cannot be modified by end-users. In this case celleditors can be invoked but end users can only select and copy aneditor's content. This option is not in effect if the column's AllowEdit or the view's ColumnView.Editable option is disabled.
Cell values can still be modified in code using the ColumnView.SetRowCellValue method regardless of the ReadOnly property's setting.只读不可拷贝:
ColumnViewOptionsBehavior.Editable = False
只读可拷贝:
ColumnViewOptionsBehavior.Editable = True
OptionsColumn.AllowEdit = True
OptionsColumn.ReadOnly = True
可编辑:
ColumnViewOptionsBehavior.Editable = True
OptionsColumn.AllowEdit = True
OptionsColumn.ReadOnly = False
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置2
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件:gridControl常用属性设置
- DEV控件GridControl常用属性设置
- RSA 非对称加密与解密
- 编译你自己的Linux内核(Kernel)
- MySql配置(网易的)
- AS3.0基础学习笔记(2): 对象
- 在textarea光标指定地方插入内容
- DEV控件:gridControl常用属性设置
- 当使用 Windows Server 2003 中添加或删除程序 " 消息收到 " 无法加载安装库 wbemupgd.dll " 错误
- 实用的SQL函数(用于将符合条件的某列所有记录合成一行)
- 如何做需求分析(一)概述
- building block context的处理
- 程序设计图书中的圣经级著作汇总(from 刘江@图灵)(附注)
- C语言常用
- 网上看到的几道小问题
- 小心你的命令