This project is read-only.

How Can I set the Combox Cell Edit Enable=false??

Jan 18, 2010 at 2:55 AM

Hi All

Like the title ,I found the cell can edit if the edtor is combox,but I want to get the value only from the combox support,

if I dont set the cell enable =false,the cell value posssibly from the user edit(not values from  edit the combox ).

How Can I set the Cell edit=false??

i'm trying to set the cell.editor.EnableEdit=false,but the cell and the combox not edit neither!

How Can I do ??



Jan 22, 2010 at 11:05 AM

I don't understand exactly, what you need, but 2 possibility:

SourceGrid.Cells.Editors.ComboBox cbEditor;


((ComboBox)cbEditor.Control).DropDownStyle = ComboBoxStyle.DropDownList; // not too elegant, but informally :)




cbEditor.EditableMode = SourceGrid.EditableMode.None;