I am trying to implement a property grid type of control. I am starting with your PROPERTYGRID CS and trying to figure out how to make the right hand side nodes editable. Just to see if I could make it editable, I tried this:
// Set the UseEditor property to DefaultableBoolean.True // so that embeddable editors are used this.ultraTree1.Override.UseEditor = DefaultableBoolean.True; // Set the ShowEditorButtons property to Always so that // embeddable editors display their edit elements at all times. this.ultraTree1.Override.ShowEditorButtons = ShowEditorButtons.Always; // Since all the nodes in level zero are the same, we can assign // their editor at the NodeLevelOverrides level this.ultraTree1.NodeLevelOverrides[0].Editor = new EditorWithText();
No luck, it was still read only. I originally tried the following code on each node as it is created, but it, too, does not work:
node.Override.Editor = this.editorWithText; node.Override.LabelEdit = DefaultableBoolean.True; node.Override.UseEditor = DefaultableBoolean.True; node.Override.ShowEditorButtons = ShowEditorButtons.Always;
What am I missing?
Sam
Try setting the AllowCellEdit property of the column to 'Full'
I tried it and it doesn't work. I think an example might be helpful here, so I took the Infragistics PROPERTYGRID CS project, added the line you suggested and changed the object being displayed to a simple data class that has both getters and setters. You can find the key line of I added by searching for "*** ADDED BY SAM ***"
If you would be so kind as to make this example editable, I would much appreciate at!
Just add the following line to the UltraTreePropertyGrid class constructor:
this.ultraTree1.Override.CellClickAction = CellClickAction.EditCell;