I implemented an ultratree with checkbox in the first column. After I click on any cell in the second column(ICD-10), I could use [Up] and [Down] keys to navigate in the tree. However, if I click on the checkbox, the [Up] and [Down] keys no longer navigate, until I click on any other cell in the same row again. Is there a way to fix this:
Thanks,
Steve
Hello Steve,
I believe that this could be happening because the cell in which you are clicking(checkbox) is going in editmode which means that it has the focus and you have to exit from editmode to interact with the control and its rows again. If this is not the case please try to attach a small sample project demonstrating this and I will be happy to take a look at it.
Please feel free to let me know if I misunderstood you or if you have any other questions.
HI Boris,
Thanks for the info. This makes sense. But how do I exit the edit mode after user has click on the checkbox? Could you give me a sample code? I am using V9.1.
Here are the codes that set up the checkbox in the grid:
_icd10ColSet =
_icd10ColSet.ColumnAutoSizeMode = UltraWinTree.ColumnAutoSizeMode.AllNodesWithDescendants
_icd10ColSet.Key =
"ICD10"
chkICD10.DataType =
GetType(Boolean)
chkICD10.AllowCellEdit = AllowCellEdit.Full
_icd10ColSet.Columns.Add(
"ICD-10")
"ICD-10 Description")
.FullRowSelect =
True
.HideSelection =
False
Hello,
Could you please try the following code and see if it suits your requirements:
private void tvICD10_CellValueChanged(object sender, CellValueChangedEventArgs e) { if (e.Cell.Column.Key == "CHECKBOX_HEADER") { e.Cell.EndEdit(false); } }
Please do not hesitate to contact us if you need any additional assistance.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.