David Aleu
David Aleu

Reputation: 3942

How to make a Janus GridEx column readonly?

I'm working on a 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?

Upvotes: 3

Views: 7256

Answers (2)

Carolyn Van Slyck
Carolyn Van Slyck

Reputation: 604

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;

Upvotes: 2

manji
manji

Reputation: 47978

Have you tried:

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

?

Upvotes: 8

Related Questions