Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1095
How to make a cell containing a custom contol uneditable ?
posted

Requirement : 

A dropdown containing a TreeView in the cells in a column in an UltraGrid. The cells in the column are not supposed to be directly editable and should only get its values set when a node in the "TreeViewDropDown" is selected.

 ( So more or less the same requirement for the cell as if we put a valuelist there and set the Style property of the column to DropDownList.).

 

Situation :

Ive setup the grid with one of its column having its EditorContol pointing at a UltraTextEditor - which have a DropDownEditorButton in its ButtonRight collection - which again points at a UltraTree. The UltraTree is filled with UltraTreeNodes conintaining data I want passed to the grid cell. So far so good everything works fine.

 

Question :

Is it possible to make the grid cell non editable with this kind of functionality setup. The cells in the given column needs to be "locked" or made uneditable for direct input. The Cells should always and only get its value fra a select operation in the given custom control.

I've tried playing around with the CellActivation and CellDisplayStyle and Style properties of the grid column but without luck. If I lock the cells for editing by setting CellActivation = Activation.NoEdit;  then my "dropdown"/custom control dissapears and im unable to trigger it.

 

Are there any straightforward way of solve this without having turn to mouseclick events or other "workarounds" ?

Parents Reply Children
No Data