2024年4月25日发(作者:)

DevExpress中GridControl的属性设置

1. 隐藏最上面的GroupPanel

oupPanel=false;

2. 得到当前选定记录某字段的值

sValue=[dRowHandle][FieldName].ToString()

;

3. 数据只读

le=false;

4.不显示MasterDetailView

MasterViewMode=false;

5.修改最上面的GroupPanel内容

anelText="CSDN";

6.数据绑定:

FieldName --数据库的字段名称

7.读写拷贝权限设置

le

This property returns a value of the le

option

不可写

le

Gets or sets whether end users are allowed to invoke cell editors

可读可写

dit

Gets or sets whether end users are allowed to invoke editors for the

column's cells.

可读可写

只有le=True 设置

OptionsColumnAllowEdit 才有意义。

ly