开发者

How to make a Janus GridEx column readonly?

开发者 https://www.devze.com 2023-03-10 08:06 出处:网络
I\'m working on 开发者_如何学Pythona windows forms app and there is a Janus GridEx component with 3 columns. I don\'t want users to change the values in the first two columns but I can\'t find the way

I'm working on 开发者_如何学Pythona windows forms app and there is a Janus GridEx component with 3 columns. I don't want users to change the values in the first two columns but I can't find the way to make readonly or allowedit false for the first two columns and third column editable.

I've tried changing the editmode but no luck either... anyone out there knows how?


Have you tried:

column.EditType = Janus.Windows.GridEX.EditType.NoEdit;

?


If you change the column's Selectable property to false, the user will not be able to edit it. You can set this property in the designer or in code. Here is an example which locks down the id column:

GridEXColumn idColumn = gridEX1.RootTable.Columns["id"];
idColumn.Selectable = false;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号